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
| Argument | Required |
|---|---|
id | Yes |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--lite | boolean | Skip the usage fetch (faster; default rich) | |
--variant | string | Reserved — 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.
Related
Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.
What's next?
Last updated on