--- title: hydrogen upgrade description: Upgrade Hydrogen project dependencies, preview features, fixes and breaking changes. The command also generates an instruction file for each upgrade. api_name: shopify-cli source_url: html: https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-upgrade md: https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-upgrade.md --- # hydrogen upgradecommand Upgrade Hydrogen project dependencies, preview features, fixes and breaking changes. The command also generates an instruction file for each upgrade. ## Flags The following flags are available for the `hydrogen upgrade` command: * \--path \ 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. * -f, --force env: SHOPIFY\_HYDROGEN\_FLAG\_FORCE Ignore warnings and force the upgrade to the target version * -v, --version \ string A target hydrogen version to update to ### Examples * #### hydrogen upgrade ##### hydrogen upgrade ```bash shopify hydrogen upgrade [flags] ```