--- title: hydrogen init description: Creates a new Hydrogen storefront. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-init' md: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-init.md' --- # hydrogen initcommand Creates a new Hydrogen storefront. ## Flags The following flags are available for the `hydrogen init` command: * \--git env: SHOPIFY\_HYDROGEN\_FLAG\_GIT Init Git and create initial commits. * \--install-deps env: SHOPIFY\_HYDROGEN\_FLAG\_INSTALL\_DEPS Auto installs dependencies using the active package manager. * \--language \ string env: SHOPIFY\_HYDROGEN\_FLAG\_LANGUAGE Sets the template language to use. One of `js` or `ts`. * \--markets \ string env: SHOPIFY\_HYDROGEN\_FLAG\_I18N Sets the URL structure to support multiple markets. Must be one of: `subfolders`, `domains`, `subdomains`, `none`. Example: `--markets subfolders`. * \--mock-shop env: SHOPIFY\_HYDROGEN\_FLAG\_MOCK\_DATA Use mock.shop as the data source for the storefront. * \--path \ string env: SHOPIFY\_HYDROGEN\_FLAG\_PATH The path to the directory of the new Hydrogen storefront. * \--quickstart env: SHOPIFY\_HYDROGEN\_FLAG\_QUICKSTART Scaffolds a new Hydrogen project with a set of sensible defaults. Equivalent to `shopify hydrogen init --path hydrogen-quickstart --mock-shop --language js --shortcut --routes --markets none` * \--routes env: SHOPIFY\_HYDROGEN\_FLAG\_ROUTES Generate routes for all pages. * \--shortcut env: SHOPIFY\_HYDROGEN\_FLAG\_SHORTCUT Creates a global h2 shortcut for Shopify CLI using shell aliases. Deactivate with `--no-shortcut`. * \--styling \ string env: SHOPIFY\_HYDROGEN\_FLAG\_STYLING Sets the styling strategy to use. One of `tailwind`, `vanilla-extract`, `css-modules`, `postcss`, `none`. * \--template \ string env: SHOPIFY\_HYDROGEN\_FLAG\_TEMPLATE Scaffolds project based on an existing template or example from the Hydrogen repository. * -f, --force env: SHOPIFY\_HYDROGEN\_FLAG\_FORCE Overwrites the destination directory and files if they already exist. ### Examples * #### hydrogen init ##### hydrogen init ```bash shopify hydrogen init [flags] ```