Synopsis
use —set to add or update tags, and —unset to remove tags. Valid resource types are: flow, flows, env, environment, environments, control, controls, repo, repos. Repos are identified by their name. If multiple repos share the same name across VCS providers, use —provider to disambiguate, or tag the repo unambiguously by its internal ID with —repo-id (see: kosli get repo). Note: in dry-run mode the repo name is not resolved to its internal ID (no request is made to Kosli), so the previewed request URL contains the name as-is, whereas a real run sends the resolved ID.
Flags
Flags inherited from parent commands
Live Examples in different CI systems
- GitHub
- GitLab
View an example of the
kosli tag command in GitHub.In this YAML fileExamples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
tag an environment
tag an environment
tag a control
tag a control
tag a repo
tag a repo
tag a repo whose name exists across multiple VCS providers
tag a repo whose name exists across multiple VCS providers
tag a repo by its internal ID (see: kosli get repo)
tag a repo by its internal ID (see: kosli get repo)