Skip to main content
Version: 4.0.5

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>

Parameters

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

Options

OptionDescriptionRequired?
--nowaitExecute asynchronously in the background

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