Skip to main content

mr note-types revisions list

List the revisions of a note type, 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 note-types revisions list

Examples​

List the revisions of a note type

mr note-types revisions list --id 3

Print only the revision numbers

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

Flags​

FlagTypeDefaultDescription
--iduint0ID of the note type (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​