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

# upgrade

```bash lines theme={"system"}
qlty upgrade [OPTIONS] [COMMAND]
```

Upgrade the Qlty CLI

When run without a `--version` argument, this command checks if there is a newer version of the Qlty CLI available than the current version.

If there is a release to install, it will download and unpack it to a tempoary directory.

It will then rename the executable to replace the currently running executable, to complete the upgrade.

Finally, the upgrade command will attempt to install shell completions.

## Arguments

<AccordionGroup>
  <Accordion title="--version <VERSION>">
    The version to upgrade to. Defaults to the latest version
  </Accordion>

  <Accordion title="--force">
    Run the upgrade even if the latest version is already installed
  </Accordion>

  <Accordion title="--dry-run">Whether to perform a dry run</Accordion>
</AccordionGroup>

## Commands

<AccordionGroup>
  <Accordion title="source">Upgrades the source</Accordion>
</AccordionGroup>

## Examples

```bash Upgrade to the latest Qlty CLI if one is available lines theme={"system"}
qlty upgrade
```

```bash Upgrade to version 0.299.0 lines theme={"system"}
qlty upgrade --version 0.299.0
```

```bash Force re-installation even if no new version is available lines theme={"system"}
qlty upgrade --force
```

## See Also

* [`completions`](/cli/commands/completions)
* [Global Options](/cli/global-options)
