--- title: hydrogen generate route description: Generates a set of default routes from the starter template. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-generate-route' md: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-generate-route.md' --- # hydrogen generate route Generates a set of default routes from the starter template. ## Flags The following flags are available for the `hydrogen generate route` command: * **--adapter \** **string** **env: SHOPIFY\_HYDROGEN\_FLAG\_ADAPTER** Remix adapter used in the route. The default is `@shopify/remix-oxygen`. * **--locale-param \** **string** **env: SHOPIFY\_HYDROGEN\_FLAG\_ADAPTER** The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale). * **--path \** **string** **env: SHOPIFY\_HYDROGEN\_FLAG\_PATH** The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run. * **--typescript** **env: SHOPIFY\_HYDROGEN\_FLAG\_TYPESCRIPT** Generate TypeScript files * **-f, --force** **env: SHOPIFY\_HYDROGEN\_FLAG\_FORCE** Overwrites the destination directory and files if they already exist. Examples ### Examples * #### hydrogen generate route ##### hydrogen generate route ```bash shopify hydrogen generate route [flags] ```