# Upgrade or uninstall (https://kumoba.dev/guide/upgrade)

## Upgrade [#upgrade]

1. Stop kumobad: press Ctrl-C in its terminal, or run `pkill -x kumobad`.
2. Run the installer again:

   ```sh
   curl -fsSL https://kumoba.dev/install.sh | bash
   ```

   It replaces the binaries and downloads the new image when the version changed. Your sandboxes stay.
3. Start kumobad again.
4. Update the SDK in your projects with `npm install kumoba@latest`.

Stopping kumobad stops its sandboxes. Under systemd, give the unit `KillMode=mixed` and `TimeoutStopSec=90`, as [Run kumobad as a service](/service) shows, so the guests shut down cleanly. On a host other clients use, run `kumoba drain` first so no new sandboxes arrive, and wait until `kumoba capacity` shows `"running": 0`. A restart ends the drain; start kumobad with `KUMOBAD_DRAIN_ON_START=1` to check the host before `kumoba undrain` puts it back in service.

Read the [changelog](/changelog) first. While kumoba is alpha, a minor version (0.2 to 0.3) may change the API, and a protocol change needs new images.

## Install a specific version [#install-a-specific-version]

```sh
curl -fsSL https://kumoba.dev/install.sh | KUMOBA_VERSION=0.18.0 bash
```

## Uninstall [#uninstall]

1. Stop kumobad.
2. Remove its directory, which holds the binaries, images, sandboxes and token:

   ```sh
   rm -rf ~/.kumoba
   ```

3. Remove the `~/.kumoba/bin` line from your shell profile.