Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Shopify CLI

$ shopify Official Med Risk
Shopify · Workspace & SaaS · MIT · macos / linux / windows

Shopify CLI automates app scaffolding, Hydrogen storefronts, Shopify Functions, and Liquid theme synchronization against development or live stores. Store selection via --store and browser OAuth keeps agent workflows scoped, though dev servers and theme watch commands are interactive/long-running.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install shopify-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

Use shopify CLI for theme push/pull, app builds, and extension deployment; pair with Shopify Dev MCP when agents only need GraphQL Admin API schema or docs lookup.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports --json on inspection commands like theme list and app info, though dev commands open browsers and block.

  • --json flag available on read and theme list commands
  • shopify app dev and shopify theme dev run interactive watchers
Trust & Safety 20 / 25

Requires explicit --store targeting and supports --unpublished theme isolation plus --password theme access tokens.

  • Theme Access App tokens scope permissions away from full admin OAuth
  • --unpublished prevents overwriting the live theme
Setup & Portability 13 / 15

Cross-platform via npm or Homebrew, requiring Node.js and occasionally Ruby for older theme tooling.

  • Published on npm as @shopify/cli and Homebrew
Utility & Efficiency 13 / 15

Essential for Shopify theme validation (theme check), bundling, and extension deployment.

  • Bundles Theme Check static analysis directly inside the CLI
Maintenance & Lineage 9 / 10

Official Shopify repository (Shopify/cli) with frequent releases under MIT.

  • Actively maintained by Shopify engineering
Docs & Verifiability 8 / 10

Comprehensive Shopify Dev CLI command reference with clear flag tables.

  • Official docs at shopify.dev/docs/api/shopify-cli

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores OAuth session tokens locally under OS config directories or reads SHOPIFY_CLI_PARTNERS_TOKEN / theme access passwords via --password.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free (MIT); Shopify Partner development stores are free, while production stores require a Shopify plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Shopify CLI Agent Rules
- Always target a development store or `--unpublished` theme; NEVER pass `--live` on `shopify theme push` without human approval.
- Run `shopify theme check` before pushing any Liquid or JSON template edits.
- Do not invoke `shopify app dev` or `shopify theme dev` synchronously without a background timeout.

Agent-Ready Command Recipes

Safe Read-Only Queries

List store themes as JSON
shopify theme list --store example.myshopify.com --json

Reads installed themes and roles from the target store in structured JSON.

Check theme Liquid syntax locally
shopify theme check --fail-level error

Runs Shopify Theme Check statically on local Liquid templates without touching remote store state.

Controlled Writes & Previews

Push theme to an unpublished draft
shopify theme push --store example.myshopify.com --unpublished --theme agent-preview --json

Uploads local theme changes to a non-live unpublished theme so the live storefront stays untouched.

Strengths for Agents

  • + Built-in shopify theme check catches Liquid and schema bugs locally before remote uploads.
  • + Supports --unpublished draft themes and --json output for structured store inspection.
  • + Theme Access tokens limit blast radius compared to broad Partner OAuth sessions.

Caveats & Pitfalls

  • ! shopify app dev and shopify theme dev spawn long-lived processes and interactive prompts.
  • ! Initial OAuth login typically expects a local browser unless SHOPIFY_CLI_PARTNERS_TOKEN or a Theme Access password is set.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI