Skip to main content

Command reference

This reference lists all Shoplazza CLI commands organized by topic.

Command syntax​

shoplazza [topic] [command] [flags]

Three-layer command system​

Shoplazza CLI provides three layers of commands for progressive depth of control:

LayerSyntaxWhen to use
Shortcutsshoplazza <topic> +<action>Day-to-day operations with smart defaults
API commandsshoplazza <topic> <action>Full control over API parameters
Raw APIshoplazza api rest <METHOD> <PATH>Any endpoint not covered above

For details, see Three-layer command system.

Command groups​

The groups follow shoplazza --help: store & business, development, and setup & tooling.

Store & business​

Store data (shortcuts + API commands)​

TopicShortcutsAPI commandsReference
Products+search, +create, +set-price, +stock, +publish, +unpublish, +count, +set-variants, +tag79products
Orders+search, +count, +ship, +refund, +update-tracking38orders
Discounts+search, +rebate, +flashsale, +mn-discount, +percent-code, +amount-code, +bxgy-code, +free-shipping-code15discounts
Customers+search, +create, +count11customers
Shop+upload-file95shop
Themes (API)+page, +edit, +card-schema, +preview, block +edit, block +get56themes-api
Billing—14billing
Webhook—6webhook

shoplazza schema <topic> lists a topic's API commands.

Platform features​

CommandDescription
billing one-timeOne-time charge management
billing recurringRecurring subscription management
billing usageUsage-based billing
billing transactionsTransaction queries
webhook createRegister event webhooks
webhook listList registered webhooks
webhook getGet a webhook
webhook updateUpdate a webhook
webhook deleteDelete a webhook
webhook countCount webhooks

Raw API​

CommandDescription
api restRaw HTTP requests to any endpoint

Development​

App development​

CommandDescription
app initInitialize or link an app project
app listList apps in your account
app infoShow app metadata
app devStart local development server
app deployDeploy app to production
app config linkLink app configuration
app config useSwitch app configuration
app config pushPush the [dashboard] settings to the Partner dashboard
app extension createScaffold a new extension
app versionsList deployed versions
app function compileCompile function extension to WASM
app function releaseCompile and publish function extension
app function listList function extensions

Theme development​

CommandDescription
themes initScaffold a new theme
themes servePreview theme with live reload
themes pullDownload theme from store
themes pushUpload theme to store
themes packagePackage theme as ZIP
themes shareShare theme preview link
themes env listList the environments in shoplazza.theme.toml
themes env showShow one environment's settings
themes env checkValidate environments offline
themes env addAdd an environment
themes env setChange fields of an environment
themes env removeRemove an environment

Store theme operations (themes list, themes +page, themes +edit, …) are in the Themes (API) row of the store data table above.

Extensions​

checkout is an alias of checkout-extension, and te of theme-extension.

CommandDescription
checkout-extension initScaffold checkout extension project
checkout-extension createAdd extension to existing project
checkout-extension devLocal dev server on :8888
checkout-extension buildBuild extension with Vite
checkout-extension pushUpload new version
checkout-extension previewGenerate a preview URL for a version
checkout-extension deployActivate a version
checkout-extension undeployDeactivate an extension
checkout-extension listList checkout extensions
checkout-extension versionsList an extension's versions
theme-extension createScaffold theme extension
theme-extension serveDev server with live sync
theme-extension buildBuild a new version
theme-extension deployEnable a version in store
theme-extension connectLink extension to an app
theme-extension releasePublish version in bound app
theme-extension listList the store's theme extensions
theme-extension versionsList an extension's versions

Setup & tooling​

Authentication & configuration​

CommandDescription
auth loginLog in via OAuth 2.0
auth logoutRemove all profiles and stored credentials
auth statusShow current authentication state
auth scopesShow supported and granted OAuth scopes
auth store useSwitch to a different store
profile addAdd a profile for a store
profile listList configured profiles
profile infoShow a profile's details
profile useSwitch the current profile
profile updateChange a profile's scopes
profile renameRename a profile
profile removeRemove a profile

Utilities​

CommandDescription
schemaInspect available APIs and parameters
skills listList the Agent Skills embedded in the CLI
skills readPrint a skill or one of its reference files
updateUpdate CLI to latest version and refresh API metadata
completionGenerate shell completion scripts
doctor checkRun diagnostic checks
--version / -vDisplay CLI version
--help / -hShow command help

Global flags​

These flags are available on all commands:

FlagDescription
--format <json|pretty|table|ndjson|csv>Output format (default: pretty at an interactive terminal, json when piped, in CI, or with --no-input; SHOPLAZZA_CLI_FORMAT overrides the default)
--no-inputNever prompt; fail fast on missing input (scripts and agents)
--profile <name>Profile to use for this invocation
--help / -hShow command help

--version / -v works on the root command (shoplazza --version). API commands, shortcuts, and api rest also take --jq <expression> / -q (filter JSON output; at an interactive terminal add --format json) and --dry-run (preview the request without executing).

For details, see Global flags.