mw wiki bulk apply
Releasev0.35.0 · cfeceb67
mw wiki bulk apply [flags]Read one explicit edit object per line from –input FILE or –input -. Each record requires operation and summary; updates require a positive baserevid. Supported operations: page-put, entity-create, term-change, statement-add/update/remove, qualifier-add/remove, reference-add/remove. Page creation requires createonly=true and baserevid=0. Entity creation requires baserevid=0. Kind must be item or property for Wikibase operations.
Results are streamed as NDJSON: line, optional record_id, operation, status and result/error. –dry-run validates and reads preconditions but fetches no CSRF tokens and writes nothing. Errors are reported per record and cause a failing final exit status. An ambiguous POST outcome is marked error.ambiguous=true: inspect the wiki before retrying that record. No failed writes are retried automatically. There is no implicit bridge from page-list output to edits, and no transaction across records.
Example record: {“operation”:“term-change”,“kind”:“item”,“entity”:“Q42”,“term”:“label”,“change”:“set”,“language”:“en”,“values”:[“Example”],“baserevid”:123,“summary”:“Correct label”}
Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”mw wiki bulk apply --input edits.jsonl --dry-runmw wiki bulk apply --input - --stop-on-errorSee also
Section titled “See also”Page views: —Sessions: —