--- title: hydrogen generate routes description: Generates all supported standard shopify routes. api_name: shopify-cli source_url: html: https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-generate-routes md: https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-generate-routes.md --- # hydrogen generate routescommand Generates all supported standard shopify routes. ## Flags The following flags are available for the `hydrogen generate routes` 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 * #### hydrogen generate routes ##### hydrogen generate routes ```bash shopify hydrogen generate routes [flags] ```