Skip to main content

mr note get

Get a note by ID and print its metadata. Fetches the full record including name, description, meta JSON, attached tags/groups/resources, owner group, note type, optional start/end dates, and the share token (when the note is currently shared). Output is a key/value table by default; pass the global --json flag to get the full record for scripting.

Usage

mr note get <id>

Positional arguments:

  • <id>

Examples

Get a note by ID (table output)

mr note get 42

Get as JSON and extract the name with jq

mr note get 42 --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

Note object with ID (uint), Name (string), Description (string), Meta (object), Tags ([]Tag), Groups ([]Group), Resources ([]Resource), OwnerId (*uint), NoteTypeId (*uint), shareToken (*string, omitempty)

Exit Codes

0 on success; 1 on any error

See Also