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

# upgrade

> Command for upgrading the Xata CLI

The `upgrade` command helps you update the Xata CLI to the latest version.

## upgrade

Upgrade the Xata CLI.

```bash theme={null}
xata upgrade [--channel <channel>] [--version <version>] [-h|--help]
```

<ParamField path="--channel" type="string">
  The channel to upgrade from (dev|next|latest, default: latest)
</ParamField>

<ParamField path="--version" type="string">
  The specific version to upgrade to
</ParamField>

<ParamField path="-h, --help" type="boolean">
  Print help information and exit
</ParamField>

## Global Flags

<ParamField path="-h, --help" type="boolean">
  Print help information and exit
</ParamField>
