ktm variables name-available
Pre-flight: check whether a variable name is free under a product
Pre-flight: check whether a variable name is free under a product
Usage
ktm variables name-available [flags]
Examples
ktm products list -o table # find the product id
ktm variables name-available --product-id 134 --name MY_VAR
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | Variable name to check | |
--product-id | int | Product numeric id (from 'ktm products list') |
Details
Returns "available" or "taken" so you can surface name conflicts client-side before attempting create. Takes the product's NUMERIC ID (find via 'ktm products list -o table'), not the slug.
Implementation note: the platform's own name check is unreliable, so the check is performed client-side by listing the product's variables and matching by name.
Related
Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.
What's next?
Last updated on