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
| Argument | Required |
|---|---|
id | Yes |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--value | string | New value for this variant | |
--variant | string | Variant 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.
Related
Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.
What's next?
Last updated on