---
title: hydrogen upgrade
description: >-
  Upgrade Hydrogen project dependencies, preview features, fixes and breaking
  changes.
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'
api_name: shopify-cli
---

# hydrogen upgrade

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:

* **--json-schema**

  **env: SHOPIFY\_FLAG\_JSON\_SCHEMA**

  Print the command's JSON schemas.

* **--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.

* **-f, --force**

  **env: SHOPIFY\_HYDROGEN\_FLAG\_FORCE**

  Ignore warnings and force the upgrade to the target version

* **-v, --version \<value>**

  **string**

  A target hydrogen version to update to

Examples

### Examples

* ####

  ##### hydrogen upgrade

  ```sh
  shopify hydrogen upgrade [flags]
  ```

***
