Skip to main content

mr notes add-meta

Add metadata keys to every Note listed in --ids by passing a JSON string via --meta. The server-side endpoint at POST /v1/notes/addMeta determines whether this merges on top of existing meta or replaces it — see the admin interface docs for exact semantics. For single-note single-key edits, use note edit-meta (dot-path syntax).

Usage

mr notes add-meta

Examples

Set a single key on multiple notes

mr notes add-meta --ids 1,2,3 --meta '{"status":"reviewed"}'

Set multiple keys at once (JSON object)

mr notes add-meta --ids 1,2 --meta '{"priority":5,"owner":"alice"}'

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated note IDs (required) (required)
--metastring``Meta JSON string (required) (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)

Exit Codes

0 on success; 1 on any error

See Also