Skip to main content

mr note-type get

Get a note type by ID and print its fields. The server has no single-NoteType GET endpoint, so the CLI fetches the full list and filters in-process; this is slower than a direct lookup on large instances. The table output shows five core fields (ID, Name, Description, Created, Updated). The --json flag emits the full server response, including MetaSchema, SectionConfig, CustomHeader, and other Custom* fields.

Usage

mr note-type get <id>

Positional arguments:

  • <id>

Examples

Get a note type by ID (table output)

mr note-type get 1

Get as JSON and extract the name with jq

mr note-type get 1 --json | jq -r .Name

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)

Output

Full server NoteType JSON (--json); table with ID, Name, Description, Created, Updated (default)

Exit Codes

0 on success; 1 on any error

See Also