ktm variables update

Update a variable's name, description, and/or default_value (properties only)

Update a variable's name, description, and/or default_value (properties only)

Usage

ktm variables update <id> [flags]

Examples

ktm variables update 17 --description "DB hostname"
ktm variables update 17 --default-value "new-default"
ktm variables update 17 --name DB_HOST_V2

Arguments

ArgumentRequired
idYes

Flags

FlagTypeDefaultDescription
--default-valuestringNew default value
--descriptionstringNew description (optional, recommended) — overwrites the current value; useful for clarifying purpose
--namestringNew name

Details

Properties only — this command does NOT touch per-variant values. To change one variant's value use 'ktm variables set-value'; to copy values across variants use 'ktm variables variants copy-values'. Variable type is immutable on the platform; this command preserves it.

Notes

  • Updates a variable's properties (name, description, default value). To set a single variant's value, use ktm variables set-value.

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