hydrogen generate routescommand
command
Generates all supported standard shopify routes.
Anchor to flagsFlags
The following flags are available for the hydrogen generate routes
command:
- Anchor to --adapter <value>--adapter <value>stringenv: SHOPIFY_HYDROGEN_FLAG_ADAPTER
Remix adapter used in the route. The default is
.
- Anchor to --locale-param <value>--locale-param <value>stringenv: SHOPIFY_HYDROGEN_FLAG_ADAPTER
The param name in Remix routes for the i18n locale, if any. Example:
locale
becomes ($locale).- Anchor to --path <value>--path <value>stringenv: SHOPIFY_HYDROGEN_FLAG_PATH
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
- Anchor to --typescript--typescriptenv: SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT
Generate TypeScript files
- Anchor to -f, --force-f, --forceenv: SHOPIFY_HYDROGEN_FLAG_FORCE
Overwrites the destination directory and files if they already exist.
Was this section helpful?
Hydrogen generate routes
shopify hydrogen generate routes [flags]
Examples
hydrogen generate routes
hydrogen generate routes
shopify hydrogen generate routes [flags]