Shopify CLI for Hydrogen storefronts
Shopify CLI is a command-line interface tool that helps you build Hydrogen storefronts. You can also use it to automate many common development tasks.
You need to use Node.js to install Shopify CLI and manage its dependencies. However, you can use any technology stack to build your Hydrogen storefront's functionality.
This documentation explains how to use Shopify CLI for Hydrogen storefront development. To learn how to use Shopify CLI for other tasks, refer to the following documentation:
RequirementsAnchor link to section titled "Requirements"
Getting startedAnchor link to section titled "Getting started"
Shopify CLI is managed as a set of Node.js packages:
If you're building a Hydrogen storefront, then you don't need to install Shopify CLI globally. Instead, these packages should be added as dependencies of your app. Using Shopify CLI this way enables a consistent development experience across environments.
Because Shopify CLI requires a conventional directory structure, if you're creating a new Hydrogen storefront, then you should run one of the following commands to initialize your app:
Refer to the following tutorials for additional details about creating a Hydrogen storefront:
Create a new Hydrogen storefrontAnchor link to section titled "Create a new Hydrogen storefront"
||Sets the absolute or relative path to your Hydrogen app directory. Defaults to the current directory. For example,
Command referenceAnchor link to section titled "Command reference"
Refer to the Shopify CLI storefront command reference to explore the commands available to build Hydrogen storefronts with Shopify CLI.
Contributing to Shopify CLIAnchor link to section titled "Contributing to Shopify CLI"
Shopify CLI is open source. Learn how to contribute to our GitHub repository.