shoplazza-cli

中文版 | English
The official Shoplazza Open Platform CLI tool — built for humans and AI Agents. Develop apps and themes, and manage products, discounts, orders and customers, with structured output designed for AI Agent integration.
Install · Auth · Development · Commands · Agent Plugin & Skills · Advanced · Contributing
Why shoplazza-cli?
- Agent-Native Design — Structured JSON output out of the box; AI Agents can operate Shoplazza stores with zero extra setup
- Agent Skills Included — One plugin or one command installs skills that teach AI agents this CLI's commands, safety rules, and per-domain gotchas
- E-Commerce Focused — Products, Discounts, Orders, Customers with full CRUD and 30+ shortcut commands for high-frequency operations
- Full Developer Workflow — App creation, extension scaffolding (checkout / theme / function), local dev server over an auto tunnel, one-command deploy; plus theme init, live reload, multi-environment, and packaging
- Secure & Controllable — Encrypted local credential storage, automatic store-token refresh,
--dry-run previews, and a confirmation prompt before destructive commands
- Interactive When You Need It — Missing required flags are prompted for and id flags open a fuzzy picker; scripts and agents never see a prompt
- Three-Layer Architecture — Shortcuts (human & AI friendly) → API Commands (OpenAPI-synced) → Raw API (full coverage)
- Up and Running in 3 Minutes — Interactive login, from install to first API call in 3 steps
Features
| Domain | Capabilities |
|---|
| 🛍️ Products | Catalog, variants, inventory, collections, images, gift cards, reviews, locations, suppliers & procurement |
| 🏷️ Discounts | Automatic and code discounts, flash sales, coupon campaigns |
| 📦 Orders | Orders, fulfillment, refunds, transactions, risk, post-sales, shipping zones, tracking carriers |
| 👤 Customers | Customer profiles, addresses, marketing subscription |
| 🏪 Shop | Shop info, blogs & articles, pages, menus, files, metafields, markets, languages, redirects, carrier services, analytics |
| 💳 Billing | Application charges: one-time, recurring, usage-based |
| 🔔 Webhooks | Webhook subscription CRUD |
| 🎨 Themes | Local dev loop with live reload and multi-environment targeting; store themes (market, publish, files, versions); page, card & AI block editing |
| 🧩 App | Full lifecycle: init → extension create → dev → deploy; extensions: checkout, theme, function |
| 🧱 Extensions | Standalone checkout-extension and theme-extension projects: scaffold, dev / serve, version, deploy / release |
| 📚 Docs | Search and read the shoplazza.dev developer docs (guides, API reference for every version, changelog); no login |
Most domains also carry + shortcuts on top of their generated commands — run
shoplazza <domain> --help to see the ones it has.
Installation & Quick Start
Install
| Method | Command | Notes |
|---|
| npm | npm install -g shoplazza-cli | Recommended. Requires Node.js >=16. Self-updates via shoplazza update. |
| Shell script (macOS / Linux) | curl -fsSL https://raw.githubusercontent.com/Shoplazza/shoplazza-cli/main/install.sh | bash | Auto-detects OS and architecture. |
| Download binary | See GitHub Releases | Manual download for any platform. |
| Build from source | git clone ... && cd shoplazza-cli && make install | Requires Go v1.24+. Installs to ~/.local/bin. |
| Homebrew (macOS / Linux) | brew install Shoplazza/tap/shoplazza-cli | Auto-updates via brew upgrade. |
Build from source
Requires Go v1.24+. Installs to ~/.local/bin (no sudo needed):
git clone https://github.com/Shoplazza/shoplazza-cli.git
cd shoplazza-cli
make install
If ~/.local/bin is not on your PATH, add it: export PATH="$HOME/.local/bin:$PATH".
For a system-wide install: sudo make install PREFIX=/usr/local.
Quick Start (Human Users)
Note for AI assistants: If you are an AI Agent helping the user install, jump directly to Quick Start (AI Agent).
# Log in (replace with your store domain)
shoplazza auth login --store-domain my-store.myshoplazza.com --domain products,orders
# Verify
shoplazza auth status