> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# update

> Update the Openlayer CLI to the latest version

The `openlayer update` command checks for and installs the latest version of the
[Openlayer CLI](https://docs.openlayer.com/api-reference/cli/overview.md).

> [!NOTE]
>
> Before installing, `openlayer update` verifies the downloaded release against
> its published SHA-256 checksum. If verification fails, your installed CLI
> remains unchanged; retry the update or use the [installation
> command](https://docs.openlayer.com/api-reference/cli/overview.md#installing-the-openlayer-cli) for your
> operating system.

## Usage

```bash theme={null}
openlayer update [flags]
```

### Examples

```bash theme={null}
# Download and install the latest version
openlayer update

# Only check for updates, don't install
openlayer update --check
```

## Flags

| Flag | Default | Description |
| - | - | - |
| `--check` | `false` | Only check for updates, don't install. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.