PageStaxHelp
Browse all articles

Developers and agencies

psx command reference

Every psx command at a glance — what it reads or changes, and its main flags.

Read-only commands are marked ○ and commands that write are marked ●. Required flags are in bold. For the full flags of any command run psx help <command> — the help is generated from the tool itself, so it is always current.

Two flags work everywhere: --json prints the whole result, and --opId <key> sets the idempotency key for a write.

Pages#

CommandFlagsWhat it does
○ pages.list—Every page with its publish status.
○ pages.showpage, contentA page's sections in order, with keys. --content adds every component's text, link and binding.
○ pages.renderpage, file, outRenders a draft at 1440 and 390 px with screenshots and a check of what rendered.
● pages.createname, template, kind, productCreates a draft page from a template.
● pages.duplicatepage, nameCopies a page as an independent draft — the way to make an A/B challenger.
● pages.set-kindpage, kindMarks a draft as the home page (home) or back to a page (page).
● pages.publishpage, confirm, target, handle, themeIdPublishes a draft with its products' live data.
● pages.unpublishconfirm, page, handle, themeIdTakes a page off the storefront; for the home page, restores the theme's original.
○ templates.listkindTemplates for new pages and which can carry a home page.

Sections#

CommandFlagsWhat it does
○ sections.listquery, category, template, limitSearches the section library.
○ sections.showsectionEvery component of a section — the ids section.set takes.
● section.addpage, section, index, productAdds a library section, or a copy of a saved section (custom/<id>).
● section.movepage, section, toMoves a section.
● section.removepage, sectionRemoves a section.
● section.setpage, section, component, content, design, removed, bindChanges one component.
● batchpage, opsMany set / add / move / remove ops on one page, in one write.
○ sections.minequeryYour saved sections and where each is used.
● sections.savepage, section, nameSaves a section to your saved sections.
● sections.updatesection, page, from, applyRe-saves a saved section; --apply re-copies it to every page with a copy.
● sections.applysection, pagesRe-copies a saved section to the pages that have one.
● sections.forgetsectionRemoves a saved section from the library; copies stay.
● composebrief, kind, product, products, brand, facts, name, template, header, footerBuilds a product page, home page or cart from a brief. Saves a draft.

Products#

CommandFlagsWhat it does
○ product.listquery, status, limit, afterSearches your catalogue with Shopify's product search.
○ product.showproductOne product in full.
● product.createtitle, variants, …Creates a product in Shopify (draft by default).
● product.updateproduct, …Changes a product; --publish adds it to the Online Store.

Offers, journeys and tests#

CommandFlagsWhat it does
● offer.createname, type, slot, reward, …Creates an offer as a draft. A free gift creates its Shopify automatic discount.
● offer.go-liveoffer, confirmSwitches an offer on after checking it against Shopify.
● journey.createname, trigger, steps, products, collection, frequency, days, holdoutPctSequences offers into a draft journey.
● journey.turn-onjourney, confirmTurns a journey on; refused while a step's offer isn't live.
● test.createname, kind, …Creates an A/B test as a draft.
● test.starttest, confirmStarts a test.

Going live#

CommandFlagsWhat it does
○ live.pending—What is saved but not live, and what a push does to each item.
● live.pushconfirm, ids, allPushes the named pending changes live (or --all).
● live.discardids, allUndoes pending changes back to what shoppers see now. Never deletes.

Reviews#

CommandFlagsWhat it does
● reviews.settingsautoPublish, holdBelow, verifiedBadge, photosFirstNo flags reads the settings; any flag changes them.
○ reviews.liststate, product, limit, afterReviews by state and product.
● review.hide / review.restorereviewHides reviews from the storefront, or puts them back.
● review.deletereviewDeletes reviews for good.

Your computer#

login, login --check, whoami and logout manage the sign-in stored on your machine.

Error codes#

CodeMeaning
bad_inputA flag is missing, unknown or the wrong shape.
not_foundNo such page, section, product, offer, journey or test.
refusedIt exists, but the command said no on purpose — for example no --confirm, or an offer whose mechanism isn't real.
conflictSomeone else wrote first, or an idempotency key was reused.
plan_limitYour plan doesn't include this.
transportPageStax couldn't be reached.
failedAnything else, in the server's own words.

Still stuck? Contact support — include your store address and what you were doing.