ktm variables set-value

Set ONE variant's value on a grouped variable (preserves other variants)

Set ONE variant's value on a grouped variable (preserves other variants)

Usage

ktm variables set-value <id> [flags]

Examples

ktm variables set-value 17 --variant prod --value prod.db.example.com
ktm variables set-value 17 --variant 42 --value 0.0.0.0

Arguments

ArgumentRequired
idYes

Flags

FlagTypeDefaultDescription
--valuestringNew value for this variant
--variantstringVariant id or name (required)

Details

Atomic per-variant value setter. --variant accepts a variant id or name; the target variant must exist on the variable. Errors when called on a global variable (no variants) — use 'ktm variables update --default-value' instead.

Notes

  • Sets ONE variant's value on a grouped variable, preserving the other variants. To change a variable's name, description, or default value, use ktm variables update.

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