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

Authentication & configuration

CommandDescription
auth loginLog in via OAuth 2.0
auth logoutRemove stored credentials
auth statusShow current authentication state
auth scopesList available OAuth scopes
auth store useSwitch to a different store

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 extension createScaffold a new extension
app generateGenerate a new extension (interactive)
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

Extensions

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 deployActivate a version
checkout-extension undeployDeactivate an extension
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

Store data (shortcuts + API commands)

TopicShortcutsAPI commandsReference
Products+search, +create, +set-price, +stock, +publish, +unpublish, +count, collections +create78products
Orders+search, +count, +ship, +refund, +update-tracking36orders
Discounts+search, +rebate, +flashsale, +mn-discount, +percent-code, +amount-code, +bxgy-code, +free-shipping-code15discounts
Customers+search, +create11customers
Shop+upload-file64shop
Themes (API)15themes-api

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

Utilities

CommandDescription
api restRaw HTTP requests to any endpoint
schemaInspect available APIs and parameters
updateUpdate CLI to latest version
completionGenerate shell completion scripts
doctorRun diagnostic checks
--version / -vDisplay CLI version
--help / -hShow command help

Global flags

These flags are available on all commands:

FlagDescription
--format <json|pretty|table>Output format (default: json)
--jq <expression> / -qFilter JSON output with jq expression
--dry-runPreview the request without executing
--debugEnable debug output
--version / -vDisplay CLI version
--help / -hShow command help

For details, see Global flags.