hydrogen env pull
Pulls environment variables from the linked Hydrogen storefront into an .env file, leaving secret values empty.
Anchor to flagsFlags
The following flags are available for the hydrogen env pull command:
- Anchor to --env <value>--env <value>--env <value>stringstring
Specifies the environment to perform the operation using its handle. Fetch the handle using the
env listcommand.- Anchor to --env-branch <value>--env-branch <value>--env-branch <value>stringstringenv: SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCHenv: SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH
Specifies the environment to perform the operation using its Git branch name.
- Anchor to --env-file <value>--env-file <value>--env-file <value>stringstring
Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path
--path.- Anchor to --json-schema--json-schema--json-schemaenv: SHOPIFY_FLAG_JSON_SCHEMAenv: SHOPIFY_FLAG_JSON_SCHEMA
Print the command's JSON schemas.
- Anchor to --no-color--no-color--no-colorenv: SHOPIFY_FLAG_NO_COLORenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --no-input--no-input--no-inputenv: SHOPIFY_FLAG_NO_INPUTenv: SHOPIFY_FLAG_NO_INPUT
Disable interactive prompts and browser authentication.
- Anchor to --path <value>--path <value>--path <value>stringstringenv: SHOPIFY_HYDROGEN_FLAG_PATHenv: SHOPIFY_HYDROGEN_FLAG_PATH
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
- Anchor to --verbose--verbose--verboseenv: SHOPIFY_FLAG_VERBOSEenv: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output. May include sensitive data.
- Anchor to -f, --force-f, --force-f, --forceenv: SHOPIFY_HYDROGEN_FLAG_FORCEenv: SHOPIFY_HYDROGEN_FLAG_FORCE
Overwrites the destination directory and files if they already exist.
- Anchor to -j, --json-j, --json-j, --jsonenv: SHOPIFY_FLAG_JSONenv: SHOPIFY_FLAG_JSON
Output the result as JSON. Automatically disables color output.
hydrogen env pull
Examples
Hydrogen env pull
hydrogen env pull
shopify hydrogen env pull [flags]