Shopify CLI workflow
Connect the theme to a real store and get a live preview before writing a line of Liquid. This is the loop to keep on screen while building.
Install & authenticate
- Install once:
npm i -g @shopify/cli@latest; verify withshopify version. - Log in against the store:
shopify auth login --store your-store.myshopify.com(or pass--storeon the firsttheme dev). A browser opens and the CLI caches the session. If commands start returning 401, re-runauth login. - No store yet? Create a free development store in the Shopify Partners
dashboard and use its
*.myshopify.comdomain.
Start a theme
- Scaffold fresh with
shopify-theme-architectand run the CLI inside that folder, orshopify theme init <dir>to start from a reference theme. - Editing a live theme instead:
shopify theme pull --store …to sync it down.
Live preview — the loop you demo
shopify theme dev --store your-store.myshopify.comserves the theme athttp://127.0.0.1:9292with hot reload — saves to.liquid/CSS/JS refresh the browser instantly. It also prints a shareable preview URL and a theme-editor link. Keep this window visible while Claude builds.
Ship it
- Lint first:
shopify theme check(seeshopify-theme-check). shopify theme push --unpublisheduploads as a new, non-live theme and returns a preview link — the safe default.--theme <id>targets a specific theme;--livepublishes.shopify theme listshows ids and roles.
Guardrails
- Never
--livepush to a production store without explicit confirmation; prefer--unpublished+ the preview link during a build. - Keep a
.shopifyignoreso dev/push never uploadnode_modulesor source assets. One store = one auth session.
Start here, then hand off to shopify-theme-architect to scaffold and the
page skills to build.