Skip to main content

Synopsis

Tag a resource in Kosli with key-value pairs.
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

View an example of the kosli tag command in GitHub.In this YAML file

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on July 21, 2026