Skip to main content

Global flags

These flags are available on all Shoplazza CLI commands.

FlagTypeDefaultDescription
--format <format>stringautoOutput format: json, pretty, table, ndjson, or csv. Defaults to pretty at an interactive terminal and to json when stdout is piped or redirected, in CI, or with --no-input; SHOPLAZZA_CLI_FORMAT pins the default
--profile <name>string—Profile to use for this invocation (overrides SHOPLAZZA_CLI_PROFILE and the current profile)
--no-inputbooleanfalseNever prompt; fail fast on missing input (same as SHOPLAZZA_CLI_NO_INTERACTIVE=1)
--help / -hboolean—Show help for the command

--version / -v is available on the root command only (shoplazza --version).

Command flags​

These flags are not global: each exists only on the commands listed.

FlagTypeDefaultAvailable onDescription
--jq <expression>string—API commands, shortcuts, api rest, schemaFilter JSON output using a jq expression. Needs JSON output, so add --format json at an interactive terminal
-q <expression>string—Same as --jqShorthand alias for --jq
--dry-runbooleanfalseAPI commands, shortcuts, api rest, themes push / pull / share, checkout-extension deploy / list / preview / undeploy / versionsPreview the request without executing it
--params <json>string—API commands, api restJSON for path and query parameters
--data <json>string—API commands with a request body, api restJSON request body (inline, @file, or - for stdin)
--fields <fields>string—products +searchComma-separated product fields for the API to return

Examples​

shell
# Table output
shoplazza products list --format table

# Pretty print
shoplazza orders +search --format pretty

# Filter with jq
shoplazza products list --format json --jq '.data.products[] | {id, title, price_min}'

# Dry run
shoplazza products create --data '{"product": {"title": "Test"}}' --dry-run

# Field projection (products +search)
shoplazza products +search --fields "id,title,price_min" --format table

# Use another profile for one command
shoplazza products list --profile prod-us