Skip to main content

Overview

Shoplazza CLI is a command-line tool for building Shoplazza apps, themes, and extensions. It covers the full development lifecycle — from project scaffolding and local development to deployment and version management.

What's new in v2

Shoplazza CLI v2 is a ground-up rewrite that introduces a three-layer command system, OAuth 2.0 authentication, and structured output designed for both human developers and AI agents.

Three-layer command system

LayerPrefixPurposeExample
Shortcuts+High-frequency operations with smart defaultsshoplazza products +search --keyword "shirt"
API commands1:1 mapping to platform API endpointsshoplazza products list --format table
Raw APIapi restEscape hatch for any endpointshoplazza api rest GET /openapi/2026-01/products

For details, see Three-layer command system.

Key capabilities

  • App lifecycle — Initialize, develop, and deploy apps with app init, app dev, app deploy
  • Theme development — Scaffold, preview, push, and publish themes
  • Extensions — Build checkout extensions and theme extensions with bundled toolchains
  • Store data — Manage products, orders, customers, discounts, and more via shortcuts and API commands
  • Billing & Webhooks — Create subscriptions and register event hooks
  • Schema introspection — Explore all available APIs with shoplazza schema

Domain coverage

DomainShortcutsAPI Commands
Products+search, +create, +set-price, +stock, +publish, +unpublish, +count78 commands
Orders+search, +count, +ship, +refund, +update-tracking36 commands
Discounts+search, +rebate, +flashsale, +mn-discount, +percent-code, +amount-code, +bxgy-code, +free-shipping-code15 commands
Customers+search, +create11 commands
Shop+upload-file64 commands
Themesinit, serve, pull, push, package, share15 commands
Billing14 commands
Webhook6 commands

Installation

To install Shoplazza CLI, refer to Install Shoplazza CLI.

Getting started

Command reference

Refer to the command reference to explore all available commands, organized by topic.

Authentication

Shoplazza CLI v2 uses OAuth 2.0 with PKCE for secure authentication. You can authenticate interactively via browser or non-interactively with a User Access Token (UAT) for CI/CD pipelines.

For details, see Authentication.

Output formats

All commands support structured output via the global --format flag:

FormatDescription
jsonStructured JSON (default) — ideal for scripting and AI agents
prettyHuman-readable key-value display
tableTab-separated table with headers

You can also filter JSON output with --jq expressions and preview requests with --dry-run.

For details, see Output formats.

Upgrade

To upgrade Shoplazza CLI to the latest version:

npm update -g shoplazza-cli

To check your current version:

shoplazza version

Theme development

For theme-specific CLI usage, refer to the Theme CLI guide.