Skip to main content

mr categories revisions

Inspect and restore the Template Revisions of a Category. Every save that changes one of its templates, its MetaSchema or its SectionConfig records a revision, so each subcommand takes the category ID with --id and works on that category's history.

The subcommands are list, show, diff, restore and label. All of them require an admin account, because history is visible only to those who may edit the category.

Usage​

mr categories revisions

Flags​

This command has no local flags.

Inherited global flags​

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Exit Codes​

0 on success; 1 on any error

See Also​