
Shopify CLI
CLIShopify 官方命令行:初始化、本地开发并部署 Shopify 应用、扩展、Functions 与主题,也能构建和托管 Hydrogen 自定义店面。需要 Node.js。
Shopify CLI
With the Shopify command line interface (Shopify CLI), 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.
Before you begin
Install the latest version of Node.js and npm (or another package manager of your choice).
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
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 install it through Homebrew on macOS: brew tap shopify/shopify && brew install shopify-cli
Learn more in the docs: Shopify CLI for themes
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
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.
References
相關資源

Shopify AI Toolkit
PluginShopify 官方 agent 插件:检索 Shopify 文档与 API Schema,校验 GraphQL、Liquid 与 UI 扩展代码,还能通过 Shopify CLI 管理店铺。默认上报使用遥测,可以关闭。
Shopify/Shopify-AI-Toolkit601
Wrangler
CLICloudflare 官方 Workers 命令行,本地开发调试并部署 Workers,管理 D1、R2、KV 等资源并实时查看日志。官方推荐装在项目内,需要 Cloudflare 账号。
cloudflare/workers-sdk4.6k
Vercel CLI
CLIVercel 官方命令行,一条命令把前端与全栈项目部署上线,并管理预览环境、环境变量、域名与日志。官方维护,需要 Vercel 账号(有免费档)。
vercel/vercel16.4k
Netlify CLI
CLINetlify 官方命令行:部署站点、用 Netlify Dev 在本地运行项目、管理环境变量、Functions 与 Blobs,并可直接调用 Netlify API。需要 Node.js 22.13 以上与 Netlify 账号登录。
netlify/cli1.9k
Deno
CLIJavaScript、TypeScript 与 WebAssembly 运行时,自带格式化、lint、测试与编译等工具;默认禁止脚本访问文件、网络与环境变量,需用 --allow-* 显式授权,便于较安全地运行 agent 生成的脚本。
denoland/deno109k
Bun
CLI一体化的 JavaScript/TypeScript 工具链:单个 bun 可执行文件同时是 Node.js 兼容运行时、包管理器、测试运行器与脚本运行器,安装依赖与跑测明显更快。
oven-sh/bun96.3k