ktm variables variants

Variants: environment slices inside a variable group (dev, staging, prod, …)

Variants — environment slices inside a variable group (dev, staging, prod, …)

Aliases: variants, variant

Usage

ktm variables variants [flags]

Subcommands

add

Add a new variant to a variable group

copy-values

Promote variant values: copy every variable's --from variant into --to across the group

remove

Remove a variant; refuses if any variable holds non-default data unless --force

rename

Rename a variant in a group atomically

set-default

Promote a variant to default (demotes the prior default atomically)

Details

Manage variants under a variable group: add, remove (safe-by-default), rename, set the default, and copy values across variants. Use 'ktm variables groups show <id>' to list current variants.

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