This page describes how to upgrade the Redis version of a Memorystore for Redis
instance. For a list of available versions, see [Supported versions](https://docs.cloud.google.com/memorystore/docs/redis/supported-versions.md.txt).
For more information about instance behavior during an upgrade operation, see [Version upgrade behavior](https://docs.cloud.google.com/memorystore/docs/redis/version-upgrade-behavior).

## Upgrading the instance version

> [!IMPORTANT]
> **Important:** You can upgrade the version of an instance to any newer version. For example `3.2` to `7.0`.

### Console

1. Go to the Memorystore for Redis page in the Google Cloud console   
   [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances)
2. Click the instance ID of the instance you want to upgrade
3. In the **Configuration** section, next to **Redis Version** , click **UPGRADE**
4. Click the **UPGRADE** button in the dialog to upgrade your instance

### gcloud

To upgrade the Redis version of your instance, enter the following command,
replacing <var translate="no">variables</var> with appropriate values:

```
gcloud redis instances upgrade instance-id --redis-version=version --region=region
```

Where:

- <var translate="no">instance-id</var> is your instance ID
- <var translate="no">version</var> is the version you want to upgrade to:
  - Acceptable values are: `redis_4_0`, `redis_5_0`, `redis_6_x`, `redis_7_0`, and `redis_7_2`
- <var translate="no">region</var> is the region in which the instance is provisioned

For example:

```
gcloud redis instances upgrade myinstance --redis-version=redis_7_0 --region=us-central1
```