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 note type listing and filters in-process. Only the first page (50 rows) is fetched, so a note type beyond it reports note type <id> not found; use mr note-types list --name <substring> to locate it instead.

The table output shows five core fields (ID, Name, Description, Created, Updated). The --json flag emits the full server response, including MetaSchema, SectionConfig, CustomHeader, CustomCSS, 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