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

> [!NOTE]
> **Note:**
> - Upgrading an instance is irreversible. You cannot downgrade the Memcached version of a Memorystore for Memcached instance.
> - Upgrading the Memcached instance causes a full cache flush on the instance.
> - Version upgrade is only available by using the gcloud CLI.

## Upgrading the instance version

### Console

1. Go to the **Memorystore for Memcached** page in the Google Cloud console

   [Memorystore for Memcached](https://console.cloud.google.com/memorystore/memcached/instances)

2. Click the instance ID of the instance you want to upgrade

3. In the **Instance properties** section next to **Version** , click **UPGRADE**

4. Select the Memcached version to upgrade to

5. Click the **Submit** button

### gcloud

To upgrade the Memcached version of your instance, run the `upgrade` command:

```
gcloud memcache instances upgrade instance-id --memcached-version=memcached-version --region=region
```

Replace the following:

- <var translate="no">instance-id</var> is the ID of your instance.

- <var translate="no">memcached-version</var> is your desired Memcached version for your
  instance. The accepted values is `1.6.15`.

- <var translate="no">region</var> is the region where you want to deploy your instance.