> ## 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](/api-reference/cli/overview).

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