Skip to main content

mr groups add-tags

Attach one or more Tags to a set of Groups in a single request. Both arguments are comma-separated ID lists: --ids selects the target Groups and --tags selects the Tags to add. The server merges the requested tag links with whatever each Group already has; existing links are unaffected, and no tag links are removed.

Verify the result by reading a target Group back with mr group get <id> --json | jq '.Tags'.

Usage

mr groups add-tags

Examples

Tag three groups with tag 5

mr groups add-tags --ids 10,11,12 --tags 5

Add multiple tags to one group

mr groups add-tags --ids 10 --tags 5,6,7

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated group IDs (required) (required)
--tagsstring``Comma-separated tag IDs (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)

Output

Status object with ok (bool)

Exit Codes

0 on success; 1 on any error

See Also