sndev.io / docs

catalog-vars

Get variable schema for a catalog item.

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.
sn catalog-vars <item_sys_id> [--json]

Get variable schema for a catalog item.

Arguments

NameRequiredDescription
item_sys_idYessys_id of the catalog item.

Flags

FlagDefaultDescription
--jsonOutput variable schema as JSON array.

Examples

sn catalog-vars 04b7e94b4f7b4200086eeed18110c7fd
Variables 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.