Skip to main content
Version: 2.4.7

tag update Command

The tag update command updates a tag (or creates a tag if it does not exist).

Usage

tag update [--nowait] <tag_name> <tag_value>

Options

OptionDescription
--nowaitExecute asynchronously in the background

Parameters

ParameterDescriptionRequired?Default Value
tag_nameName of tag to delete✔️N/A
tag_valueNew value to store in tag✔️N/A

Examples

Update a tag using a format template
> query is(volume) and tags.owner == null limit 1 | tag update owner "gen_{/ancestors.account.reported.name}_{name}"
kind=gcp_disk, id=123, name=gke-1, age=5mo27d, cloud=gcp, account=eng, region=us-central1, zone=us-central1-c