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

FlagTypeDefaultDescription
--groupintOptional variable group id
--productstringProduct slug (required)
--scopestringallglobal | grouped | all
--typestringsingle | secret | choice
--usedstringtrue | false — filter by usage state
--variantstringVariant 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.

Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.

What's next?

All commands

Browse the full CLI reference.

Get started

Install the CLI and authenticate.

Last updated on