Skip to main content

Shortcuts

Shortcuts are high-frequency commands prefixed with +, designed for both human developers and AI agents. They provide smart defaults and streamlined workflows. At an interactive terminal, a shortcut asks for any required flag you left out; scripts, CI, and agents get a required flag(s) not set error instead.

Syntax​

shoplazza <topic> +<action> [flags]

Available shortcuts​

Products (9 shortcuts)​

CommandDescription
products +searchSearch products by title, vendor, collection, or published status
products +countCount products
products +createCreate a single-variant product
products +set-priceSet a variant's price by variant ID, SKU, or product ID
products +set-variantsEdit a product's option matrix (values, dimensions, variant prices) in one request
products +stockSet or adjust variant inventory
products +tagAdd, remove, or replace tags without clobbering the others
products +publishPublish to online store
products +unpublishRemove from online store

Orders (5 shortcuts)​

CommandDescription
orders +searchSearch orders
orders +countCount orders
orders +shipCreate fulfillment
orders +refundCreate refund
orders +update-trackingUpdate tracking info

Discounts (8 shortcuts)​

CommandDescription
discounts +searchSearch discounts
discounts +rebateCreate automatic rebate
discounts +flashsaleCreate flash sale
discounts +mn-discountCreate a quantity-tiered Nth-item-off discount
discounts +percent-codeCreate percentage code
discounts +amount-codeCreate fixed amount code
discounts +bxgy-codeCreate buy-X-get-Y code
discounts +free-shipping-codeCreate free shipping code

Customers (3 shortcuts)​

CommandDescription
customers +searchSearch customers
customers +countCount customers
customers +createCreate a customer

Shop (1 shortcut)​

CommandDescription
shop +upload-fileSubmit a file-upload task that fetches public URLs into the media library (not local files)

Themes (6 shortcuts)​

CommandDescription
themes +pageRead a template page: sections in render order and blocks with ready-to-copy targets
themes +editApply a batch of edit operations to a template page inside one edit session
themes +card-schemaRead the settings and blocks schema of addable theme cards
themes +previewPrint a storefront preview URL for a theme
themes block +editWrite a generated block file and place it on a template page
themes block +getRead a generated block: file info, reference count, and placements

Theme development commands (themes init, serve, pull, push, package, share) are regular commands, not shortcuts — see theme.

Common flags​

All shortcuts support these flags:

FlagDescription
--format <json|pretty|table|ndjson|csv>Output format (global flag)
--dry-runPrint the request that would be sent without executing it
--jq <expr> / -qFilter JSON output

Search shortcuts also take --page-limit (page size, 1–250), and products +search takes --fields <f1,f2> to choose the fields the API returns.

Examples​

shell
# Search with table output
shoplazza products +search --keyword "dress" --format table

# Search with field projection
shoplazza products +search --keyword "dress" --fields "id,title,price_min" --format table

# Create and filter output
shoplazza customers +create --email [email protected] --format json --jq '.data.customer.id'