Automatically generates GraphQL types for your project’s Storefront API queries.
shopify hydrogen codegen [flags]
The following flags are available for the `hydrogen codegen` command:
Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.
env: SHOPIFY_HYDROGEN_FLAG_PATH
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
Watch the project for changes to update types on file save.