Skip to main content

mr resource edit

Edit fields on an existing resource. Any flag left unset keeps the existing value (partial update). Collection flags (--tags, --groups, --notes) take comma-separated ID lists and replace the current set; --meta takes a JSON string merged onto existing meta.

Usage

mr resource edit <id>

Positional arguments:

  • <id>

Examples

Rename and update the description

mr resource edit 42 --name "renamed" --description "new description"

Attach tags 5 and 7

mr resource edit 42 --tags 5,7

Flags

FlagTypeDefaultDescription
--namestring``Resource name
--descriptionstring``Resource description
--tagsstring``Comma-separated tag IDs
--groupsstring``Comma-separated group IDs
--notesstring``Comma-separated note IDs
--owner-iduint0Owner group ID
--metastring``Meta JSON string
--categorystring``Category
--resource-category-iduint0Resource category ID
--original-namestring``Original file name
--original-locationstring``Original file location
--widthuint0Width in pixels
--heightuint0Height in pixels
--series-iduint0Series ID

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