Skip to main content
Tags are key=value pairs that help you track and organize resources on SF Compute.

Create tags

Set tags when you create a resource with the --tag flag.

Edit tags

The set command replaces all existing tags on a resource. Pass every tag you want to keep.

Delete tags

To delete all tags on a resource, set --tag null. You cannot recover deleted tags.
To remove a single tag, re-run set with only the tags you want to keep.

List resources by tags

Filter resources by tag with the --tag flag.
To match any value for a key, filter with the --tag-key flag.

Constraints

Tag keys must not contain spaces, commas, or equals signs, and must not begin with an underscore (_). Keys can be up to 128 characters. Tag values must not contain commas or equals signs. Values may contain spaces and can be up to 256 characters. Tags are case sensitive. You can add up to 50 tags to each resource.