ktm variables list
List variables for a product (with scope, group, type, usage, and variant filters)
List variables for a product (with scope, group, type, usage, and variant filters)
Usage
ktm variables list [flags]
Examples
ktm variables list --product acme~web
ktm variables list --product acme~web --scope global
ktm variables list --product acme~web --group 42 --type secret
ktm variables list --product acme~web --used false
ktm variables list --product acme~web --variant prod
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--group | int | Optional variable group id | |
--product | string | Product slug (required) | |
--scope | string | all | global | grouped | all |
--type | string | single | secret | choice | |
--used | string | true | false — filter by usage state | |
--variant | string | Variant name or id — keep only variables carrying this variant |
Details
Default scope returns ALL variables (global + grouped). Filter the result with:
--scope global|grouped|all default: all --group <id> restrict to one variable group --type single|secret|choice filter by type --used true|false filter by usage state --variant <name|id> restrict to variables that carry the variant
Secrets are returned masked by the platform.
Related
Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.
What's next?
Last updated on