Shopify CLI Docs

shopify hydrogen setup

Scaffold routes and core functionality.

Scaffold routes and core functionality.

Usage

shopify hydrogen setup [flags]

Summary

Scaffold routes and core functionality.

Flags

  • --install-deps — Auto installs dependencies using the active package manager. optional Environment: SHOPIFY_HYDROGEN_FLAG_INSTALL_DEPS.
  • --markets <value> string — Sets the URL structure to support multiple markets. Must be one of: subfolders, domains, subdomains, none. Example: --markets subfolders. optional Environment: SHOPIFY_HYDROGEN_FLAG_I18N.
  • --path <value> string — The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run. optional Environment: SHOPIFY_HYDROGEN_FLAG_PATH.
  • --shortcut — Creates a global h2 shortcut for Shopify CLI using shell aliases. Deactivate with --no-shortcut. optional Environment: SHOPIFY_HYDROGEN_FLAG_SHORTCUT.
  • -f, --force — Overwrites the destination directory and files if they already exist. optional Environment: SHOPIFY_HYDROGEN_FLAG_FORCE.

Official source

On this page