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

# ankra upgrade

> Upgrade the Ankra CLI to the latest release

## ankra upgrade

Download and install a specific Ankra CLI release, replacing the
currently running binary in place.

By default the command upgrades to the latest stable release. Install an
exact release with --version (for example --version v0.2.5, or --version
0.2.5). When a version is pinned the command installs it whether it is
newer, older or the same as the running binary, so --version doubles as a
downgrade: 'ankra upgrade --version v0.1.9' rolls back to that release.
Use --check to report whether a newer release is available without
installing anything.

When the beta channel is enabled (see 'ankra config beta enable') the
newest release including pre-releases (release candidates such as
v0.3.0-rc.1) is installed instead. Use --beta or --beta=false to override
the saved channel for a single run.

The downloaded binary is verified against its published SHA-256 checksum
before it replaces the existing executable.

```bash theme={null}
ankra upgrade [flags]
```

**Flags**

| Flag                 | Default | Description                                                                         |
| -------------------- | ------- | ----------------------------------------------------------------------------------- |
| `--allow-unverified` | `false` | install even when no SHA-256 checksum is published (insecure)                       |
| `--beta`             | `false` | include pre-release versions for this run (overrides the saved channel)             |
| `--check`            | `false` | check for a newer release without installing                                        |
| `--force`            | `false` | reinstall even if already on the target version                                     |
| `--version`          |         | exact release to install for an upgrade or downgrade, e.g. v0.2.5 (default: latest) |
| `-y`, `--yes`        | `false` | skip the confirmation prompt                                                        |
