The catalog-vars command fetches the variable schema for a catalog item using the Service Catalog API. Shows variable names, types, mandatory flags, and labels. Use --json for machine-readable output that can be piped into --vars for catalog-order.
catalog-vars
Get variable schema for a catalog item.
sn catalog-vars <item_sys_id> [--json] Get variable schema for a catalog item.
Arguments
| Name | Required | Description |
|---|---|---|
| item_sys_id | Yes | sys_id of the catalog item. |
Flags
| Flag | Default | Description |
|---|---|---|
| --json | — | Output variable schema as JSON array. |
Examples
sn catalog-vars 04b7e94b4f7b4200086eeed18110c7fdVariables for "Standard Laptop":
optional_label (container_start, optional) — "Optional Software"
Additional_software_requirements (multi_line_text, optional) — "Additional software requirements"
Use --json to get a machine-readable schema, then craft your --vars JSON for catalog-order.