Skip to main content

mr resource-categories revisions

Inspect and restore the Template Revisions of a Resource Category. Every save that changes one of its templates, its MetaSchema or its SectionConfig records a revision, so each subcommand takes the resource category ID with --id and works on that resource 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 resource category.

Usage​

mr resource-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​