hydrogen upgradecommand
command
Upgrade Hydrogen project dependencies, preview features, fixes and breaking changes. The command also generates an instruction file for each upgrade.
Anchor to flagsFlags
The following flags are available for the hydrogen upgrade
command:
- 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
Ignore warnings and force the upgrade to the target version
- Anchor to -v, --version <value>-v, --version <value>string
A target hydrogen version to update to
hydrogenupgrade
- --path <value>
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
string
- -f, --force
Ignore warnings and force the upgrade to the target version
""
- -v, --version <value>
A target hydrogen version to update to
string
export interface hydrogenupgrade {
/**
* Ignore warnings and force the upgrade to the target version
* @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
/**
* A target hydrogen version to update to
*
*/
'-v, --version <value>'?: string
}
Was this section helpful?
Hydrogen upgrade
shopify hydrogen upgrade [flags]
examples
hydrogen upgrade
hydrogen upgrade
shopify hydrogen upgrade [flags]