Skip to main content

mr categories revisions list

List the revisions of a category, newest first. --id is required. The table shows the revision NUMBER (#1, #2, ...), the SOURCE that recorded it (create, form, api, cli, plugin, import, restore or baseline), the slots it CHANGED compared with the previous revision, its LABEL, the USER ID and when it was CREATED. Pass --json for the full array, including the applied list. With --quiet the output is the revision numbers, one per line, which are the numbers show, diff, restore and label take; it is not the revision id.

Usage​

mr categories revisions list

Examples​

List the revisions of a category

mr categories revisions list --id 3

Print only the revision numbers

mr categories revisions list --id 3 --json | jq -r '.[].number'

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​

Array of revision summaries, newest first, with id, number, carrierType, carrierId, createdAt, createdByUserId, label, source, applied, changedSlots and restoredFrom

Exit Codes​

0 on success; 1 on any error

See Also​