Skip to content

mw wiki page history

Releasev0.35.0 · cfeceb67

mw wiki page history TITLE [flags]

Read paginated revision metadata, newest first by default. This does not download revision content. –limit counts distinct revisions; 0 means unlimited. Timestamps use RFC3339, with explicit timezone offsets accepted. Suppressed user/comment fields remain marked as hidden. A redirect’s own history is read rather than following its target.

--by-user <string>
Only revisions by this user or IP address
--end <string>
End timestamp in RFC3339 format
--exclude-user <string>
Exclude revisions by this user or IP address
--format <string>
Format the specified output
--limit <int>
Maximum distinct revisions (0 means unlimited) Default: 20.
--order <string>
Traversal order: older (newest first) or newer (oldest first) Default: older.
-o, --output <string>
Output format (jq|json|table) Default: auto.
--start <string>
Start timestamp in RFC3339 format
--anon
Use anonymous access instead of saved credentials
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--password <string>
Wiki login password (or bot password)
--password-file <string>
Read the login password from a file
--profile <string>
Saved profile name or REALM/NAME
--realm <string>
Shared-login realm (wikimedia and wikibase-world are built in)
--username <string>
Wiki login username (use Name@bot for a bot password)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
--wiki <string>
Wiki URL or API endpoint
Terminal window
mw wiki page history Earth --limit 10
mw wiki page history Earth --order newer --start 2026-01-01T00:00:00Z --output json
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.