Assign or remove tags on IICS objects. Tags can be used to filter objects with iics objects list --tag.
iics tag <subcommand> [flags]| Subcommand | Description |
|---|---|
assign |
Assign tags to an object |
remove |
Remove tags from an object |
Assign one or more tags to an object.
| Flag | Type | Required | Description |
|---|---|---|---|
--object-id |
string | yes | ID of the object to tag |
--tags |
string | yes | Comma-separated list of tag names |
All global flags apply.
# Assign a single tag
iics tag assign --object-id aLX7qnviqxJdmqpVsd17SG --tags "prod"
# Assign multiple tags at once
iics tag assign --object-id aLX7qnviqxJdmqpVsd17SG --tags "prod,reviewed,v2"
# Resolve object ID from path first, then tag
ID=$(iics lookup --path "Sales/ETL/LoadOrders" --type MTT --output json | jq -r '.id')
iics tag assign --object-id "$ID" --tags "sales,etl"# Assign a single tag
iics tag assign --object-id aLX7qnviqxJdmqpVsd17SG --tags "prod"
# Assign multiple tags at once
iics tag assign --object-id aLX7qnviqxJdmqpVsd17SG --tags "prod,reviewed,v2"
# Resolve object ID from path first, then tag
$obj = iics lookup --path "Sales/ETL/LoadOrders" --type MTT --output json | ConvertFrom-Json
iics tag assign --object-id $obj.id --tags "sales,etl"Remove one or more tags from an object.
| Flag | Type | Required | Description |
|---|---|---|---|
--object-id |
string | yes | ID of the object to untag |
--tags |
string | yes | Comma-separated list of tag names |
All global flags apply.
# Remove a single tag
iics tag remove --object-id aLX7qnviqxJdmqpVsd17SG --tags "draft"
# Remove multiple tags
iics tag remove --object-id aLX7qnviqxJdmqpVsd17SG --tags "draft,wip"# Remove a single tag
iics tag remove --object-id aLX7qnviqxJdmqpVsd17SG --tags "draft"
# Remove multiple tags
iics tag remove --object-id aLX7qnviqxJdmqpVsd17SG --tags "draft,wip"