Shopify CLI Docs

Shopify CLI for Hydrogen

Build, run, deploy, codegen, and maintain Hydrogen custom storefronts.

Hydrogen commands help create and operate custom storefronts, including local development, Storefront API type generation, Oxygen deployment, environment management, route scaffolding, and upgrades.

Create and run

shopify hydrogen init
shopify hydrogen dev
shopify hydrogen build
shopify hydrogen preview

Deploy and environments

shopify hydrogen link
shopify hydrogen env list
shopify hydrogen env pull
shopify hydrogen env push
shopify hydrogen deploy

hydrogen deploy builds and deploys the storefront to Oxygen.

Codegen and routes

shopify hydrogen codegen
shopify hydrogen generate routes
shopify hydrogen check

Use hydrogen codegen to generate GraphQL types for Storefront API queries, and hydrogen check to verify standard Shopify routes.

On this page