Skip to Content
DeveloperShopify CLI

Shopify CLI Commands

All commands target the Citera store. Set it once to save typing:

export SHOP=citera-yhzgew4z.myshopify.com

Authentication

# Sign out of every cached account shopify auth logout # There is no explicit login — the next command that needs the store # opens a browser to authenticate and caches the session. shopify theme list --store=$SHOP

Themes

CommandDescription
shopify theme list --store=$SHOPList all themes with their role and id
shopify theme pull --store=$SHOP --theme=<id>Download a specific theme
shopify theme pull --store=$SHOP --liveDownload whichever theme is live
shopify theme dev --store=$SHOPLocal dev server with hot reload
shopify theme push --store=$SHOP --unpublished --theme="Citera QA"Upload to a new unpublished theme
shopify theme push --store=$SHOP --theme=<id>Upload to an existing theme by id
shopify theme checkLint the theme (Theme Check)
shopify theme open --store=$SHOP --theme=<id>Open the theme in the browser
shopify theme share --store=$SHOPUpload to a shareable, unpublished preview
shopify theme delete --store=$SHOP --theme=<id>Delete a theme

Reference: current Citera themes

ThemeRoleId
Citeralive155731558590
Development (…-MacBook-Pro)development155731525822

Pull the live theme (quickstart)

shopify theme pull \ --store=$SHOP \ --theme=155731558590 \ --path=./citera-shopify-theme

shopify theme push overwrites the target theme’s files. Always push to an unpublished theme first (--unpublished) and publish from the Admin once you’ve reviewed the preview.

Linting before push

cd citera-shopify-theme shopify theme check

Theme Check catches Liquid errors, deprecated filters, performance issues and accessibility problems. Fix (or explicitly ignore) findings before pushing.