/shoplazza:shoplazza-productsfrom Shoplazza
Manages a Shoplazza store's product catalog via CLI: create, publish, unpublish, search, count products; adjust prices, stock, tags, variants/SKUs, collections, images, gift cards, reviews, warehouse locations, suppliers, and procurement.
Ships in Shoplazza. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CRITICAL — before anything else, use Read on ../shoplazza-common/SKILL.md.
It owns every cross-cutting mechanic: the three access tiers, the output envelope (.data),
--dry-run, --jq (incl. "don't pass -r"), --fields, schema, api rest, auth / profiles,
and the safety protocol. This file covers only the products domain and never repeats them.
The products module manages the product catalog: products and their variants, prices,
inventory, tags, images, collections, gift cards, customer reviews, warehouse locations,
suppliers, and procurement. All three access tiers apply (tier-selection rule is in
shoplazza-common — prefer +shortcut).
There is no +update or +delete shortcut — updates and deletes are spec leaves.
Products is a large domain: this file is the router plus the high-frequency operations;
per-sub-resource depth lives in references/ (variants, inventory/locations,
collections/collects, images, gift cards, comments, procurement/suppliers).
Intent → command, highest-fit tier first. The authoritative flags/params live in
shoplazza products <cmd> --help and shoplazza schema products.<cmd>, not this table.
| User intent | Command |
|---|---|
| Search / filter products | products +search [--keyword <title-word>] [--vendor <exact>] [--published published|unpublished|any] [--collection-id <id>] [--fields id,title] |
| Count products | products +count [--published …] |
| Create a single-variant product | products +create --title <name> --price <n> --image <url> [--published] |
| Create a multi-spec product (规格矩阵: color × size × …) | two steps: products +create --title <name> --price <n> --image <url> then products +set-variants --product-id <new-id> --add "Color:Red,Blue" [--add "Size:S,M"] (the created variant becomes the first combination; the others copy its price) |
| Add / remove / replace / rename spec values or dimensions, price variants — any mix in one call | products +set-variants --product-id <product-id> [--add|--remove|--set "Name:v1,v2"] [--drop "Name[=value]"] [--rename "Name:old=new"] [--new-price …] [--set-price …] |
| Publish a product | products +publish --product-id <product-id> |
| Unpublish (下架) a product | products +unpublish --product-id <product-id> |
| Change a variant's price | products +set-price (--variant-id <id> | --sku <sku> [--all] | --product-id <id>) --price <n> |
| Adjust stock (add or decrease) | products +stock (--variant-id <id> | --sku <sku> | --product-id <id>) (--adjust <±n> | --set <n>) [--location-id <id>] |
| Add / remove / replace tags | products +tag --product-id <product-id> (--add a,b | --remove c,d | --set x,y) |
| Get one product | products get --params '{"product_id":"<id>"}' |
List (filters +search lacks: ids, handles, date ranges, spus…) | products list --params '{…}' |
| Full-control create (fields the shortcuts lack) | products create --data '{"product":{…}}' (see schema products.create) |
| Update product fields | products update --params '{"product_id":"<id>"}' --data '{"product":{…}}' |
| Delete ONE product | products delete --params '{"product_id":"<id>"}' |
| Delete MANY products | products batch-delete --params '{"product_ids":["<id>",…]}' |
| List a product's variants | products variants list --params '{"product_id":"<id>"}' → references/variants.md |
| Update a variant (options, sku, weight…) | products variants update --params '{"variant_id":"<id>"}' --data '{"variant":{…}}' |
| Look up variants by SKU | products variants list-by-sku --params '{"sku":"<sku>"}' |
| Create a curated collection | products collections create --data '{"collection":{"title":"…"}}' → references/collections-collects.md |
| Add a product to a collection | products collects create --data '{"collect":{"collection_id":"<cid>","product_id":"<pid>"}}' |
| Attach an image to a product | products images create --params '{"product_id":"<id>"}' --data '{"image":{"src":"<url>"}}' → references/images.md |
Create a gift card (stored value = money → --dry-run first) | products gift-cards create --data '{"gift_card":{"code":"…","initial_value":"…","expires_on":"YYYY-MM-DD"}}' --dry-run → references/gift-cards.md |
| Check a gift card's balance | products gift-cards get --params '{"id":"<id>"}' --jq '.data.gift_card.balance' |
Stop / "delete" a gift card (irreversible → --dry-run first + go-ahead) | products gift-cards disable --params '{"id":"<id>"}' --dry-run (no delete endpoint exists; disabling permanently stops redemption) |
| Inventory levels / items, locations | products inventory … / products locations … → references/inventory-locations.md |
| Customer reviews (评价) | products comments {list,create,batch-create} → references/comments.md |
| Suppliers / procurement orders | products suppliers … / products procurement … → references/procurement-suppliers.md |
| Storefront categories | products categories list |
"新建商品 / 上架 / 调价 / 补货 / create a product / restock" is an action, not a question:
AskUserQuestion, never fabricate — especially --price (money) and
--image (an asset URL you cannot invent). Bundle the missing fields into ONE question
batch, not a series.+shortcuts are safe to run directly; use --dry-run
first for deletes, batch ops, and gift-card creation (stored value = money), per
shoplazza-common → Safety protocol.| User says | Shortcut | How to extract values |
|---|---|---|
| 搜商品 / 找一下商品 / find / list products | +search | title word → --keyword (matches title only); 供应商/vendor → --vendor (exact match, verbatim); 未上架 → --published unpublished; 已上架 → --published published |
| 有多少商品 / 商品总数 / how many products do I sell | +count | 已上架 → --published published; count comes from .data.count — never count by hand |
| 新建商品 / 建品 / 上新 / create a new product | +create | product name → --title verbatim; 售价 → --price; 主图/图片 URL → --image; "上架" wording → add --published; "存草稿/draft" → omit --published |
| 建多规格商品 / 有颜色和尺码的商品 / create a product with color & size options | +create then +set-variants --add | step 1: +create as above (draft); step 2: each dimension → one --add "Name:v1,v2,…" (max 3, order = storefront order) in one call (no price: every combo copies the price +create set; no --existing: the created variant takes the first values); per-combo skus → --sku-template with {Name} placeholders; publish last |
| 加一个颜色 / 加几个码 / add a spec value | +set-variants --add | --product-id (or resolve by name); the dimension + new values → --add "Color:White"; one new variant per existing combination of the other dimensions (combos deleted earlier stay deleted); new combos need --new-price (per value: --new-price "Color:White=19,Black=21") and, on products that require variant images, --new-image |
| 加一个规格维度 / add a whole new dimension (e.g. 加个尺码规格) | +set-variants --add + --existing | unknown dimension name = new dimension. Existing variants take the value named by --existing "Size:<value>" (required when the dimension gets several values) and keep id/sku/stock/image; the other values get new variants copying price/compare-at/cost/weight (and the image on products that require one) — no sku, no stock (--new-stock sets one). No price needed. Ask which value the current variants are before running |
| 删掉某个颜色/码 / remove a spec value | +set-variants --remove | --remove "Color:Red"; affected variants are deleted and listed in the output. Values need their exact spelling (case-sensitive; a case-only mismatch is refused with a "did you mean"). A name/value that doesn't exist is an error — fix the spelling, never report success |
| 不按某规格分了 / drop a whole dimension | +set-variants --drop | --drop "Size" keeps every variant (ids kept); when variants would merge into one combination it is refused — ask which value's variants to keep, then --drop "Size=M" (the other values' variants are deleted) |
| 规格值只保留… / 整个换成… / set one dimension's values | +set-variants --set | --set "Color:Red,Blue" makes that dimension's values exactly these (order = storefront order); values not listed are removed with their variants, new ones get variants |
| 改名 / 把 Red 改成酒红 / rename a value or dimension | +set-variants --rename | value → --rename "Color:Red=Wine Red" (several: "Color:Red=Wine Red,Blue=Navy"); dimension → --rename "Color=Colour"; renames in place — every variant keeps id/sku/stock/image. A new name already taken is refused (to swap two values go through a temporary name); a repeat reports the old name missing ("was it renamed already?") — that means it is done. Never model a rename as remove + add |
| 规格改动一句话说了好几处(去掉某规格、只留某些值、改名、统一价…) | one +set-variants call | put every edit in the same call (--drop/--set/--rename/--set-price …): they apply in a fixed order (remove, drop, set, add, rename) and are written in one request; name everything as it is now (new names only on the right of --rename); the changes list in the output says what will happen |
| 各规格值价格不同 / S 卖 20、M 卖 30 | +set-variants --set-price "Size:S=20,M=30" | per-value price for every variant with that value; combine with --add when the values are new. A plain number reprices every variant |
| 上架商品 X / publish product X | +publish | id → --product-id; only a name? resolve via +search --keyword first |
| 下架 / 隐藏商品 / unpublish | +unpublish | id → --product-id |
| 改价 / 调价 / change the price to X | +set-price | Target: variant id → --variant-id; SKU → --sku; product id → --product-id (resolves that product's only variant; multi-variant is refused with the candidates listed); only a name? +search --keyword first. New price → --price verbatim; --price 0 CLEARS the price (does not display ¥0) — surface that difference and get the user's confirmation before passing 0 |
| 划线价 / compare-at price | +set-price --compare-price | only when the user names it |
| 库存加 N / 补货 N 件 / add N stock | +stock --adjust N | 加/增加 N = positive delta → --adjust N. Target: variant id → --variant-id; SKU → --sku; product id → --product-id (single-variant products; multi-variant refused with candidates); only a name? +search --keyword first — never ask the user for a variant id |
| 库存设为 N / set stock to N | +stock --set N | absolute target, either direction, at any location; may be negative; target flag as in the 库存加 N row |
| 减库存 / 库存扣掉 N / reduce stock | +stock --adjust -N | 减/扣掉 N = negative delta → --adjust -N; works at any location and stock may go below 0; target flag as in the 库存加 N row |
| 加标签(保留原有)/ add tags | +tag --add | tags comma-separated; existing tags kept |
| 去掉某标签 / remove a tag | +tag --remove | missing tags are ignored |
| 标签整个换成… / replace all tags | +tag --set | replaces the full list — only on explicit "replace/换成/只保留" wording |
If multiple rows match, ask which one. Don't guess.
Only no-default flags are askable.
| Shortcut | Must ASK if user did not specify | Infer if possible | Default silently |
|---|---|---|---|
+create | --price, --image (one batch; never fabricate a price or an image URL) | --title from the product name in the utterance; --published from 上架/publish wording | --published (omit = draft), --sku, --stock, --stock-policy (default deny), --compare-price, --tags, --collection-ids |
+set-variants | --new-price only when brand-new values appear (adding a value to an existing dimension; adding a dimension copies prices, a delete or rename needs none); --new-image likewise, only when the CLI says the product requires variant images (must be one of the product's images); --existing when adding a dimension with several values to a product that has dimensions; the value to keep when --drop would merge variants; the dimensions + values (never invent spec values; keep the user's value spelling verbatim — values are case-sensitive) | the edit flags from wording (加→--add, 删/去掉→--remove, 不按…分→--drop, 只保留/换成→--set, 改名/改成→--rename, 统一价/都卖→--set-price); --product-id via +search by name | --sku-template, --set-stock, --new-stock (optional; omit = skus/stock untouched) |
+set-price | --price (never invent a number) | the target, from what the user gave: variant id → --variant-id, SKU → --sku, product id → --product-id (resolves that product's only variant). Never ask for a variant id — resolve it | --compare-price; --all (only when the user explicitly wants every variant matching the SKU) |
+stock | the amount — and nothing else. Never ask for a variant id or an inventory-item id; resolve them | --adjust vs --set from wording (加 N = --adjust N; 减/扣 N = --adjust -N; 设为 N = --set N); the target exactly as +set-price: variant id → --variant-id, SKU → --sku, product id → --product-id. No --all here — inventory writes target one variant | --location-id (defaults to the default location) |
+publish / +unpublish | --product-id (or resolve it via +search by name) | — | — (takes only --product-id) |
+tag | --product-id, the tag values | add/remove/set mode from wording | — |
+search / +count | (nothing — all filters optional) | filters from wording | --page-limit, --fields |
Identifier ladder — resolve, don't ask. Merchants hold product names and product ids. Variant ids and inventory-item ids are internal plumbing they have never seen. Every rung below is one command, so walk down it instead of asking for an id the user does not have:
name --(+search --keyword)--> product id --(--product-id, single-variant)--> variant id
product id --(products variants list)--------> variant id
variant id --(+stock resolves it internally)-> inventory item id
Ask only when a rung is genuinely ambiguous — the product has several variants and the user's
words don't say which. --product-id refuses that case and lists the candidates: ask the user to
pick from that list. Never take variants[0] on their behalf.
Sub-resource asks (leaf-tier, same discipline):
gift-cards create — must ask code and initial_value if missing (stored value = money;
never fabricate). customer_id / send_email are optional: clarifying the customer is
fine, inventing one is not.variants update — send only the fields the user asked to change; never pad the body.Flags with a CLI default or omit-to-disable — they never appear in a question:
--location-id (default location) · --stock-policy (default deny) · --published
(omit = draft; set only on explicit publish wording) · --compare-price · --sku /
--stock / --tags / --collection-ids on +create (optional) · --page-limit ·
--fields (use only when the user asks for specific fields) · --all (explicit bulk
override only) · --sku-template / --set-stock / --new-stock on +set-variants
(optional) · the +set-variants edit flags (infer from wording: 加 = --add, 删 = --remove,
不按…分 = --drop, 只保留 = --set, 改名 = --rename).
| User says | Verdict |
|---|---|
| "新建一个商品:Lycra 瑜伽裤,售价 39.99,主图用 https://…/yoga.jpg,先存草稿" | CREATE — +create --title "Lycra 瑜伽裤" --price 39.99 --image https://…/yoga.jpg; 存草稿 = omit --published |
| "帮我上架一个新的 T恤 商品" | ASK — price + image missing (one batch); title T恤 is usable; plan --published (user said 上架) |
| "把 SKU TSHIRT-RED-M 的价格改成 24.99" | CREATE — +set-price --sku TSHIRT-RED-M --price 24.99; no --all for a single-variant intent |
| "给变体 998877 调一下价格" | ASK — the new price; target --variant-id 998877 is already known |
| "给变体 12345 的库存加 50 件" | CREATE — +stock --variant-id 12345 --adjust 50 |
| "把变体 88664 的库存减少 30 件" | CREATE — +stock --variant-id 88664 --adjust -30; if the CLI refuses (product not tracking inventory / not stocked at that location), relay the reason |
| "给老客户发一张礼品卡" | ASK — initial_value + code (money; never fabricate) |
| "建一个文胸套装,3 个颜色、15 个胸围码、6 个内裤码,统一 29.99" | ASK --image first, then two steps: +create --title … --price 29.99 --image … → +set-variants --product-id <new> --add "Color:…" --add "Bra Size:…" --add "Brief Size:…" (every combo copies 29.99) |
| "给这个商品加个 White 色" | CREATE — +set-variants --product-id <id> --add "Color:White" --new-price <n>; ask the price if unknown (the new combos need one) |
| "给已上架的 T 恤加一个尺码维度 S/M/L" | ASK FIRST — which size the current variants are (they keep id/sku/stock); the other sizes are created with each colour's price but no sku and zero stock. Then +set-variants --product-id <id> --add "Size:S,M,L" --existing "Size:<answer>" |
| "把红色改名叫酒红" | CREATE — +set-variants --product-id <id> --rename "Color:Red=酒红" (in place; ids/sku/stock kept) |
| "不要 lenses 规格了只留 6lenses 的,款式只要 Ocean 改叫 2 lenses,价格全部 19.9" | CONFIRM FIRST (variants are deleted) — one call: +set-variants --product-id <id> --drop "lenses=6lenses" --set "Style:Ocean" --rename "Style:Ocean=2 lenses" --set-price 19.9 --dry-run, relay its changes, then run it |
| "不按 lenses 分了"(lenses 有多个值) | ASK — which lenses value's variants to keep; then --drop "lenses=<value>" |
Reads like products, actually belongs elsewhere (and lookalikes this domain owns):
| Sounds like | Actually belongs to | Command |
|---|---|---|
| 优惠码 / 折扣码 / 满减 / flash sale / discount & coupon codes | shoplazza-discounts | discounts +* |
| 礼品卡 / 储值卡 / gift card (redeemable store credit) | HERE (not discounts, not billing) | products gift-cards … |
| 上传文件到媒体库 / store media library asset | shoplazza-shop | shop files / shop +upload-file |
| 给商品挂图 / image attached to a product | HERE | products images create |
| 首页轮播图 / 卡片配图 / image inside a theme card | shoplazza-themes | themes +page → themes +edit |
| 商品详情页模板 / custom product-page template | shoplazza-themes | themes template create |
| 商品元字段 / metafields on products or shop | shoplazza-shop | shop metafields-resource / metafields-definition |
| 库存同步 / 补货 / inventory & warehouse stock | HERE (not orders/fulfillment) | products +stock / products inventory |
| 买家评价 / 评论 / product reviews | HERE (not shop blogs/pages content) | products comments … |
| 博客 / 自定义页面 / storefront content pages | shoplazza-shop | shop blogs / shop pages |
Collections vs collects — intra-domain trap: collections are the curated collection
objects themselves (title, image, SEO, smart rules); collects are the association records
linking a product to a collection. "把商品加进合集" = collects create, never
collections update. See references/collections-collects.md.
Authorization is by domain (the unit of --domain), not per command. Authorization flow is
in shoplazza-common → Authentication.
| Operation | Needs | Grant |
|---|---|---|
read (get / list / +search / +count / sub-resource reads) | products read scope | auth login --domain products |
write (+create / +publish / +set-price / +stock / +tag / create / update / delete / sub-resource writes) | products write scope | auth login --domain products |
Look up exact scope literals with shoplazza auth scopes; --domain products expands into them.
Domain-specific pitfalls only (generic ones — .data prefix, --jq without -r — are in
shoplazza-common).
| Symptom | Cause | Fix |
|---|---|---|
inventory set-stock added instead of setting | set-stock adds its signed stock to the level (negative subtracts), despite its name | Use +stock --set N for an absolute target |
| Product published when the user wanted a draft | --published on +create is a bare boolean — passing it publishes | Omit --published entirely for a draft (draft is the default) |
unknown flag: --fields on +count / other shortcuts | In this module --fields exists on +search only | Project with --jq elsewhere |
+search --fields result lacks a field you named | Names are response keys (primary_image, price_min, …); a misspelled or unknown name is silently ignored by the API. id, title, created_at, updated_at may come back regardless | Check names against the default output or schema products.list --view response; or skip --fields and project with --jq |
| Tags wiped out after an update | products update (leaf) replaces the whole tag list; so does +tag --set | Use +tag --add / --remove — existing tags kept |
Variants vanished after a products update (leaf) with a variants array | The array is a full replace: any variant not listed is deleted, and listed variants without their id are matched by option values (exact, case-sensitive) and recreated when nothing matches (sku/stock reset) | Never hand-write a variants array on the leaf — use +set-variants (per-value prices included), which maps existing variants (carries ids) and reports every deletion |
"Result too large" on a big-matrix products update / create | The response echoes the full product — hundreds of variants × ~25 fields | Use +set-variants (bounded summary output). On the leaf, always narrow with --jq and pass the body via --data @file |
| Write reported "result too large" and you're tempted to retry | The request very likely succeeded — only the echo was oversized | Don't resend. Verify first: products variants count --params '{"product_id":"<id>"}' |
| Stock sits on one size only after adding a spec dimension | Adding a dimension keeps every existing variant (id, sku, stock, image) on the --existing value; the other values are new variants with the price copied and no sku/stock | Expected. Set the rest with --new-stock, +stock or --sku-template. remapped_detail / created_detail in the output say which variant went where |
+set-variants refused: "would merge variants that differ only by it" | Dropping the dimension would put two variants (e.g. Red/S + Red/M) on one combination — only one could keep its data | Ask which value's variants to keep, then --drop "Size=<value>" in the same call as any other edits |
| A value "renamed" with remove + add lost its sku/stock | remove + add deletes the old variants and creates new ones | Use --rename "Color:Red=红色" — values change in place |
+set-variants output lists sku_may_be_stale | A kept variant's sku still names a value it no longer has (dimension dropped / value renamed) | Tell the user; regenerate with --sku-template if they want new skus |
+set-variants treats S and s as different values | Values are case-sensitive on the server; a new value differing only by case from another of its dimension is refused (add, update, new dimension), and remove needs the exact spelling | Use the exact spelling; respell with --rename |
| A spec value is listed on the product but has no variants | Other edits leave it alone; --add / --set naming it creates its variants (one per existing combination of the other dimensions — needs --new-price) | Expected; drop it with --remove if it shouldn't be offered |
--new-price passed to +set-variants but some prices didn't change | --new-price only prices new variants with nothing to copy from; it never changes an existing price (the output's price_applied / warnings say so) | Reprice with --set-price (every variant, or per value "Size:S=20") |
| New product can't be ordered; API says "Out-of-stock" though stock is set | The product is a draft (+create default) — drafts are unorderable and the error message is misleading | products +publish --product-id <id> first |
+set-price --sku refused with a candidate list | The SKU matched several variants — the CLI refuses a multi-match | Pick the right --variant-id from the listed candidates, or pass --all only for an explicit "all of them" |
A product id in --variant-id → 404 No variants found (or "no inventory item found for that variant") | --variant-id is variant-scoped (PUT /variants/{variant_id}); a product id never matches it | Pass it to --product-id instead — the error's hint says so. Or list first: products variants list --params '{"product_id":"<id>"}' |
--product-id refused: "product … has N variants" | A multi-variant product has no single price or stock target | Ask the user which one, using the candidates in the hint (capped at 10 — it names the command that lists the rest), then re-run with --variant-id or --sku. Never guess variants[0] |
Price vanished after +set-price --price 0 | '0' / '0.00' clears the price rather than setting zero | Only pass 0 when the user wants the price cleared |
Wanted gift-cards delete | No delete endpoint exists (subcommands: batch-create / create / disable / get / list / update) | gift-cards disable stops redemption; tell the user it disables, not deletes |
variants update refused: unknown --params key: product_id (unknown_param) | variants get / update are variant-scoped: /variants/{variant_id} — no product_id | Only variants list / create / delete are product-scoped (delete needs BOTH ids) |
inventory set-stock rejects a variant id | Inventory levels key on inventory_item_id, which ≠ variant id | Map first: inventory list-by-variant --params '{"variant_ids":["<id>"]}' |
comments create rejected for missing fields | star, like, created_at, user_name, content, product_id are ALL required | See references/comments.md; use like: 0 if unknown |
"加进合集" attempted via collections update | Product↔collection membership is a collect record | collects create (one) / collects batch-create (many) |
Invented +delete / +update shortcut | They don't exist | delete / batch-delete / update are spec leaves (see Command map) |
# 1. All unpublished products from vendor Nike (while .data.has_more is true, rerun with --cursor <.data.cursor>)
products +search --vendor Nike --published unpublished --page-limit 250
# 2. Ids, titles and main image only, of products with "hoodie" in the title
products +search --keyword hoodie --fields id,title,primary_image
# 3. How many published products?
products +count --published published --jq '.data.count'
# 4. Create a draft product (draft = no --published)
products +create --title "Lycra 瑜伽裤" --price 39.99 --image https://cdn.example.com/yoga.jpg
# 5. Publish a product you only know by name — several matches → ask which one
products +search --keyword "瑜伽裤" --jq '.data.products[] | {id, title}'
products +publish --product-id <id>
# 6. Restock / reprice a product you only know by product id (single-variant product)
# --product-id resolves the one variant. A multi-variant product is refused with
# its candidates listed — show them to the user and let them pick.
products +stock --product-id 7ab09fcd-2ee7-4118-8c4d-e44a10d51caf --adjust 50
products +set-price --product-id 7ab09fcd-2ee7-4118-8c4d-e44a10d51caf --price 24.99
# 7. Multi-variant product: resolve the variant the user actually named, then write.
# Pick by the option the user said (XL), never by position. If the user named no
# option, ask which variant — don't take variants[0].
VID=$(products variants list --params '{"product_id":"9036f033-c605-4b6f-8a08-1b7ae090791c"}' \
--jq '.data.variants[] | select(.option2=="XL") | .id')
products +stock --variant-id "$VID" --set 20
# 8. Append tags without clobbering the existing ones
products +tag --product-id 445566 --add summer,sale
# 9. Delete one product — dry-run, restate, wait for the user's go-ahead, then run
products delete --params '{"product_id":"778899"}' --dry-run
products delete --params '{"product_id":"778899"}' # only after the user agrees (next turn)
# 10. Batch delete — always dry-run first and restate the count
products batch-delete --params '{"product_ids":["111222","333444","555666"]}' --dry-run
products batch-delete --params '{"product_ids":["111222","333444","555666"]}'
# 11. Change one variant's size option (partial body — only the field to change)
products variants update --params '{"variant_id":"24680"}' --data '{"variant":{"option1":"XL"}}'
# 12. Create a multi-spec product: draft first, then add the dimensions (3 colors × 2 sizes = 6 variants)
ID=$(products +create --title "Yoga Set" --price 29.99 --image https://cdn.example.com/yoga.jpg \
--jq '.data.product.id')
products +set-variants --product-id "$ID" --add "Color:Black,White,Pink" --add "Size:S,M" \
--sku-template "YS-{Color}-{Size}"
# 13. Add one color to an existing product (existing variants untouched)
products +set-variants --product-id 7ab09fcd-… --add "Color:White" --new-price 29.99
# 14. Add a whole dimension — existing variants become 70B (id/sku/stock kept); 70A/70C copy the
# price with no sku/stock: ask which value the current variants are first
products +set-variants --product-id 7ab09fcd-… --add "Bra Size:70A,70B,70C" --existing "Bra Size:70B"
# 15. Drop one value / a whole dimension (deleted variants are listed in the output)
products +set-variants --product-id 7ab09fcd-… --remove "Color:Pink"
products +set-variants --product-id 7ab09fcd-… --drop "Size=M"
# 15b. Rename a value / a dimension in place (every variant keeps its id, sku and stock)
products +set-variants --product-id 7ab09fcd-… --rename "Color:Red=Wine Red"
products +set-variants --product-id 7ab09fcd-… --rename "Color=Colour"
# 15c. Several edits in one call — preview, relay "changes", then run
products +set-variants --product-id 7ab09fcd-… --drop "lenses=6lenses" --set "Style:Ocean" \
--rename "Style:Ocean=2 lenses" --set-price 19.9 --dry-run
# 15d. Prices per value
products +set-variants --product-id 7ab09fcd-… --set-price "Size:S=20,M=25,L=30"
# 16. Put a product into a collection
products collects create --data '{"collect":{"collection_id":"999000","product_id":"555777"}}'
# 17. "Delete" a gift card you only know by code — resolve the id, preview the disable
# (irreversible) in the SAME reply, then wait for the user's go-ahead
ID=$(products gift-cards list --params '{"keyword":"GC9988"}' --jq '.data.gift_cards[0].id')
products gift-cards disable --params '{"id":"'$ID'"}' --dry-run
shoplazza products <cmd> --helpshoplazza schema products.<cmd> (nested: schema products.variants.update)--dry-run / --jq / safety): ../shoplazza-common/SKILL.mdshortcuts/products/*.goreferences/collections-collects.md (opens in a new tab)references/comments.md (opens in a new tab)references/gift-cards.md (opens in a new tab)references/images.md (opens in a new tab)references/inventory-locations.md (opens in a new tab)references/procurement-suppliers.md (opens in a new tab)references/variants.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shoplazza, product-catalog, inventory-management, ecommerce, cli
npx claudepluginhub shoplazza/shoplazza-cli --plugin shoplazza10 skills in this plugin
/shoplazza-billingUse when an app developer needs to bill a Shoplazza merchant for app usage through the CLI — one-time application charges, recurring (subscription) charges, metered usage charges, and app-charge transaction records. Triggers include 应用收费 / 订阅费 / 一次性收费 / 用量费 / 计费 / app billing / recurring / one-time / usage charge. NOT buyer order payments or refunds (那是 shoplazza-orders 的 transactions / +refund)./shoplazza-commonShared foundation for the shoplazza CLI: installing the CLI (安装 CLI / command not found), authentication (auth login — account-level and store-level; 登录 / 授权), auth status/scopes/logout, store switching (auth store use; 切换店铺 / 换店), multi-store profiles (add/list/use/rename/remove/info), the three access tiers (+shortcut / spec leaf / api rest), the output envelope ({ok,data} / .data), --dry-run / --jq / --fields / --format, schema introspection, api rest fallback, update notice, the safety protocol, and how to trust a filtered list read (pagination / has_more / cursor, silently-dropped filters, the exact-match precision ladder). Read this FIRST on first use of the shoplazza CLI, when the CLI is missing, when logging in / authorizing / switching store or profile, on permission errors, when a search or filter looks like it returned too much, and before using any domain skill. Platform developer-docs questions (an app's OAuth, webhook HMAC, Liquid, changelog) → shoplazza-docs./shoplazza-customersUse when the user wants to manage customers (buyers) on a shoplazza store through the CLI — create a customer profile, find a customer by email or phone, get customer details or the total customer count, update names / tags / email or SMS marketing subscription, or manage a customer's shipping addresses including the default checkout address. Triggers include 客户 / 买家 / 顾客 / 客户资料 / 新建客户 / 按邮箱查客户 / 按手机号查客户 / 给客户打标签 / 退订营销 / 收货地址 / 默认地址 / customer profile / new customer / find customer by email or phone / customer count / tag a customer / unsubscribe marketing / shipping address / default address. Finding the customer RECORD by email (按邮箱找客户资料) belongs HERE (customers +search); that customer's ORDER HISTORY (该客户下过的订单 / orders placed by this email) belongs to shoplazza-orders./shoplazza-discountsUse when the user wants to manage discount activities on a shoplazza store through the CLI — promotional campaigns, coupon codes, flash sales, buy-X-get-Y offers, rebates / tiered satisfy-N-get-M discounts, free-shipping codes, M-for-N (Nth-item-off) discounts, discount stacking / combination rules, or coupon (voucher) campaigns. Triggers include 满减 / 折扣码 / 优惠码 / 闪购 / 满X减Y. NOT gift cards (redeemable store credit → shoplazza-products `gift-cards`). NOT showing a sale inside a theme card / 首页促销卡片 (→ shoplazza-themes)./shoplazza-docsSearch and read the Shoplazza developer docs on shoplazza.dev (开发者文档 / 查文档) with `shoplazza docs search --query --locale` / `docs get --url`; no login needed. Use when the user asks how the Shoplazza platform works or what it allows: app development (应用开发), OAuth and access scopes for their own app (应用授权 / 权限范围), verifying webhook HMAC signatures (webhook 验签), app proxy (应用代理), checkout / theme / function extensions (结账扩展 / 主题扩展), theme development and the Liquid reference (主题开发 / Liquid 语法 / 对象 / 过滤器); before writing code that calls the Shoplazza API or Liquid; on an unfamiliar API error or field (报错 / 字段含义); when upgrading API versions (版本升级 / changelog). Prefer it over WebFetch or web search for shoplazza.dev. NOT store data (→ domain skills); NOT a CLI command's params / body / response (→ `shoplazza schema` / `--help`); NOT logging the CLI in (→ shoplazza-common); NOT webhook subscriptions (→ shoplazza-webhook); NOT editing the store's theme or AI cards (→ shoplazza-themes)./shoplazza-ordersUse when the user wants to manage a shoplazza store's orders through the CLI — searching / counting / viewing orders (查订单 / 找订单 / 订单列表 / 订单详情 / 新订单 / order search), shipping and fulfillment (发货 / 标记发货 / 物流 / 运单号 / 改运单号 / ship an order / update tracking), refunding a buyer (退款 / 给顾客退钱 / 退钱给买家 / refund an order — buyer refunds live HERE, not in discounts and not in billing), cancelling / creating / updating / marking orders paid (取消订单 / 代客下单 / 标记支付), an order's payment transactions (订单支付流水 / 支付交易记录 / buyer payment transactions — app-charge transactions → shoplazza-billing), fraud risk records (欺诈 / 风控 / 高风险订单 / order risk), after-sales records (售后 / post-sales), shipping zones and rates (运费区域 / 邮费 / 运费方案 / shipping zones — real-time rate carriers → shoplazza-shop carrier-services), and tracking-carrier lookup (快递承运商 / 运单号识别承运商). A customer's orders by email (按邮箱查某客户的订单) are searched HERE; the customer record itself → shoplazza-customers. NOT product stock / 库存 / 补货 (→ shoplazza-products).Other plugins' skills for the same job