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 previewDeploy and environments
shopify hydrogen link
shopify hydrogen env list
shopify hydrogen env pull
shopify hydrogen env push
shopify hydrogen deployhydrogen deploy builds and deploys the storefront to Oxygen.
Codegen and routes
shopify hydrogen codegen
shopify hydrogen generate routes
shopify hydrogen checkUse hydrogen codegen to generate GraphQL types for Storefront API queries, and hydrogen check to verify standard Shopify routes.