Shopify CLI Docs

shopify hydrogen env pull

Pulls environment variables from the linked Hydrogen storefront and writes them to an .env file.

Pulls environment variables from the linked Hydrogen storefront and writes them to an .env file.

Usage

shopify hydrogen env pull [flags]

Summary

Pulls environment variables from the linked Hydrogen storefront and writes them to an .env file.

Flags

  • --env <value> string — Specifies the environment to perform the operation using its handle. Fetch the handle using the env list command. optional
  • --env-branch <value> string — Specifies the environment to perform the operation using its Git branch name. optional Environment: SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH.
  • --env-file <value> string — Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path --path. optional
  • --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.
  • -f, --force — Overwrites the destination directory and files if they already exist. optional Environment: SHOPIFY_HYDROGEN_FLAG_FORCE.

Official source

On this page