Skip to main content

mr categories revisions show

Show one revision of a category. <number> is the per-category revision number from list, and --id is required. The output is the revision's metadata followed by each field that has stored content, printed verbatim, which for an old category can include a MetaSchema that is not valid JSON. Under --json the snapshot object holds every recorded field, and the editor object holds the same fields as the edit form loads them.

Usage​

mr categories revisions show <number>

Positional arguments:

  • <number>

Examples​

Show revision 2 of a category

mr categories revisions show 2 --id 3

Print one stored field

mr categories revisions show 2 --id 3 --json | jq -r '.snapshot.CustomHeader'

Flags​

FlagTypeDefaultDescription
--iduint0ID of the category (required)

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)

Output​

Revision summary plus snapshot, the stored value of every tracked field the revision recorded

Exit Codes​

0 on success; 1 on any error

See Also​