Shopify CLI commands for Hydrogen
This reference lists the Shopify CLI commands for Hydrogen.
Scaffolds a new Hydrogen storefront.
Flag | Description |
---|---|
--template TEMPLATE | TEMPLATE can be any of the following values:
|
--path |
The absolute or relative path to your Hydrogen app directory. Defaults to the current directory. For example, ../path/to/folder . |
Automatically installs and configures supported libraries, utilities, or packages.
Adds ESLint, ESLint plugin Hydrogen configuration, prettier, and prettier configuration to a Hydrogen project.
Installs Tailwind dependencies, configures Tailwind for the Hydrogen project, and adds Tailwind VSCode plugins.
Flag | Description |
---|---|
--force |
Overwrites existing configurations. |
--no-install |
Prevents the add command from running yarn and only updates the package.json . |
--path |
The absolute or relative path to your Hydrogen app directory. Defaults to the current directory. For example, ../path/to/folder . |
Runs a Hydrogen storefront locally for development.
Flag | Description |
---|---|
--force |
Forces dependencies to pre-bundle. |
--host |
Listens on all addresses, including LAN and public addresses. |
--verbose |
Provides more detailed output in the logs. |
Builds a Hydrogen storefront for production.
Flag | Description |
---|---|
--target=<option> |
The platform to build your Hydrogen storefront on. Valid values: node , worker . The default is worker . |
--base=<value> |
The public path to your Hydrogen storefront in production. |
--[no-]client |
Builds the client code for your Hydrogen storefront. |
--entry=<value> |
Generates a build with server-side rendering (SSR) for node environments. |
--verbose |
Provides more detailed output in the logs. |
Prints configuration and diagnostic information about your Hydrogen storefront.
Flag | Description |
---|---|
--path |
The absolute or relative path to your Hydrogen app directory. Defaults to the current directory. For example, ../path/to/folder . |