# sot update

> Move to a newer release. `sot update` stays on your major version; `sot upgrade` takes major versions too.

Web page: https://anistark.github.io/sot/commands/update/

## `sot update --help`

```text
usage: sot update [-h] [--dry-run]

options:
  -h, --help  show this help message and exit
  --dry-run   Show how sot is installed and what would run, without changing
              it
```

## `sot upgrade --help`

```text
usage: sot upgrade [-h] [--dry-run]

options:
  -h, --help  show this help message and exit
  --dry-run   Show how sot is installed and what would run, without changing
              it
```

## Which one

```sh
sot update              # newest minor or patch release of this major version
sot upgrade             # newest release, major versions included
sot update --dry-run    # show how sot is installed and what would run
```

Both work out how sot was installed (uv, pipx, Homebrew, ...) and go through that tool, so the install stays managed by it. `--dry-run` shows how sot is installed and what would run, without changing it.

## Windows

On Windows they print the command to run instead, since a running program can't replace itself.

Major releases can change key bindings or flags; read the [changelog](https://anistark.github.io/sot/changelog/index.html.md) before `sot upgrade`.

