Skip to main content

hydrogen env push

Push environment variables from the local .env file to your linked Hydrogen storefront.

The following flags are available for the hydrogen env push command:

Anchor to --dry-run
--dry-run
env: SHOPIFY_HYDROGEN_FLAG_DRY_RUN

Preview environment variable changes without pushing them.

Anchor to --env <value>
--env <value>
string

Specifies the environment to perform the operation using its handle. Fetch the handle using the env list command.

Anchor to --env-file <value>
--env-file <value>
string

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
env: SHOPIFY_FLAG_JSON_SCHEMA

Print the command's JSON schemas.

Anchor to --no-color
--no-color
env: SHOPIFY_FLAG_NO_COLOR

Disable color output.

Anchor to --no-input
--no-input
env: SHOPIFY_FLAG_NO_INPUT

Disable interactive prompts and browser authentication.

Anchor to --path <value>
--path <value>
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.

Anchor to --verbose
--verbose
env: SHOPIFY_FLAG_VERBOSE

Increase the verbosity of the output. May include sensitive data.

Anchor to -f, --force
-f, --force
env: SHOPIFY_HYDROGEN_FLAG_FORCE

Push environment variable changes without confirmation.

Anchor to -j, --json
-j, --json
env: SHOPIFY_FLAG_JSON

Output the result as JSON. Automatically disables color output.

Examples

hydrogen env push

shopify hydrogen env push [flags]

Was this page helpful?