Skip to main content

mr resource edit-meta

Edit a single metadata field at a dot-separated JSON path. Takes three positional arguments: the resource ID, the path (e.g., address.city), and a JSON literal value (e.g., '"Berlin"', 42, '{"nested":"obj"}', '[1,2,3]'). Creates intermediate path segments as needed and leaves sibling keys at each level untouched.

Usage

mr resource edit-meta <id> <path> <value>

Positional arguments:

  • <id>
  • <path>
  • <value>

Examples

Set a top-level string field (note: shell-quoted JSON string)

mr resource edit-meta 5 status '"active"'

Set a nested numeric field (creates address.postalCode if missing)

mr resource edit-meta 5 address.postalCode 10115

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)

Exit Codes

0 on success; 1 on any error

See Also