ktm variables show

Fetch a single variable, rich-by-default with usage; --lite skips usage

Fetch a single variable, rich-by-default with usage; --lite skips usage

Usage

ktm variables show <id> [flags]

Examples

ktm variables show 17
ktm variables show 17 --lite
ktm variables show 17 -o json | jq '.variable_values[] | {variant: .variant.name, value: .values}'

Arguments

ArgumentRequired
idYes

Flags

FlagTypeDefaultDescription
--litebooleanSkip the usage fetch (faster; default rich)
--variantstringReserved — no effect today

Details

Returns the full Variable shape: id, name, type, scope, default_value, and variable_values[] per variant.

CLI is rich-by-default (humans want full info): the response also includes the list of tests referencing this variable. Pass --lite to skip the usage fetch.

The --variant flag is reserved for future per-variant projection and currently has no effect.

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