hydrogen env pullcommand
Pulls environment variables from the linked Hydrogen storefront and writes them to an .env
file.
Anchor to flagsFlags
The following flags are available for the hydrogen env pull
command:
- 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-branch <value>--env-branch <value>stringenv: SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH
Specifies the environment to perform the operation using its Git branch name.
- 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 --path <value>--path <value>stringenv: 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 -f, --force-f, --forceenv: SHOPIFY_HYDROGEN_FLAG_FORCE
Overwrites the destination directory and files if they already exist.
hydrogenenvpull
- --env <value>
Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.
string
- --env-branch <value>
Specifies the environment to perform the operation using its Git branch name.
string
- --env-file <value>
Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.
string
- --path <value>
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
string
- -f, --force
Overwrites the destination directory and files if they already exist.
""
export interface hydrogenenvpull {
/**
* Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.
*
*/
'--env <value>'?: string
/**
* Specifies the environment to perform the operation using its Git branch name.
* @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH
*/
'--env-branch <value>'?: string
/**
* Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.
*
*/
'--env-file <value>'?: string
/**
* Overwrites the destination directory and files if they already exist.
* @environment SHOPIFY_HYDROGEN_FLAG_FORCE
*/
'-f, --force'?: ''
/**
* The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
* @environment SHOPIFY_HYDROGEN_FLAG_PATH
*/
'--path <value>'?: string
}
Hydrogen env pull
examples
hydrogen env pull
hydrogen env pull
shopify hydrogen env pull [flags]