Cli
Build apps, themes, and hydrogen storefronts for Shopify
Install / Use
/learn @Shopify/CliREADME
Shopify CLI
<a href="http://twitter.com/ShopifyDevs"><img src="https://img.shields.io/twitter/follow/ShopifyDevs?style=flat-square" alt="Twitter Followers"></a>
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
<a href="https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml"></a>
With the Shopify command line interface (Shopify CLI 3.0), you can:
- initialize, build, dev, and deploy Shopify apps, extensions, functions and themes
- build custom storefronts and manage their hosting
Learn more in the commands docs.
<p> </p>Before you begin
Install the latest version of Node.js and npm (or another package manager of your choice).
<p> </p>Developing apps with Shopify CLI
When you’re building a Shopify app, you can initialize your project using your preferred package manager. A single command will install all the dependencies you need — including Shopify CLI itself.
Initialize your project using one of the following commands:
npm init @shopify/app@latest(installed by default with Node)pnpm create @shopify/create-app@latestyarn create @shopify/appbun create @shopify/app@latest(experimental)
Learn more in the docs: Create an app
<p> </p>Developing themes with Shopify CLI
To work with themes, the CLI needs to be installed globally with:
npm install -g @shopify/cli
You can also use do it through Homebrew on macOS: brew tap shopify/shopify && brew install shopify-cli
Learn more in the docs: Shopify CLI for themes
<p> </p>Developing Hydrogen custom storefronts with Shopify CLI
The Hydrogen code lives here: https://github.com/Shopify/hydrogen/tree/main/packages/cli
Learn more in the docs: Shopify CLI for Hydrogen storefronts
<p> </p>Help 🖐
If you encounter issues using the CLI or have feedback you'd like to share with us, below are some options:
- File a bug report - To report bugs create a post in Shopify CLI and Libraries on the dev community
- Ask a question or request a new feature - To ask a question or request a new feature create a post in Dev Platform on the dev community
- Shopify Community Forums - Visit our forums to connect with the community and learn more about Shopify CLI development
- CLI Documentation - Apps - To view CLI documentation for app development
- CLI Documentation - Themes - To view CLI documentation for theme development
- CLI Documentation - Hydrogen - To view CLI documentation for Hydrogen (custom storefront) development
Contribute 👩🏽💻
If you'd like to contribute to the project, check out the contributors docs and the steps to get started.
<p> </p>References
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
83.9kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.4kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
