# Maintenance

A few commands keep the CLI itself healthy. None of them talk to your apps — they're about the tool on your machine.

## Check which version you have

```sh
dina version
```

You'll see something like `dina 0.2.0`. If a bug report comes up, this is the number we'll want.

## Check for updates

```sh
dina update --check
```

This looks at the latest GitHub release and tells you whether you're behind. It doesn't install anything.

## Install the latest version

```sh
dina update
```

The CLI downloads the right binary for your platform from GitHub and replaces itself in place. No shell script, no package manager — just `dina update`.

This works regardless of how you originally installed the CLI. If you'd rather use your package manager, see the [install page](/install) for the Homebrew and Linux package commands.

<div class="callout"><strong>After updating:</strong> run <code>dina install --skills</code> if you use AI tools — it refreshes the skill files so your AI tools learn about any new commands or behaviours.</div>

## Run diagnostics

```sh
dina doctor
```

This runs a short set of checks:

- **Authentication** — are you signed in, and is your token still valid?
- **Installed skills** — if you've installed agent skills, are they current?
- **CLI version** — are you running the latest release?

Each check prints `[ok]`, `[warn]`, or `[fail]`, with a short hint for anything that isn't clean.

If there's anything fixable, pass `--fix`:

```sh
dina doctor --fix
```

It'll try to repair each issue in turn, then re-run the checks and tell you what's left.

## Uninstalling

There's no `dina uninstall` command — the CLI is a single binary on disk. To remove it:

- **Homebrew:** `brew uninstall dina`
- **Shell-script install (macOS / Linux):** delete the `dina` binary from wherever it was installed (typically `~/.local/bin` or `/usr/local/bin`).
- **PowerShell install (Windows):** delete `dina.exe` from `%LOCALAPPDATA%\Programs\dina` (or wherever you set `$env:INSTALL_DIR`). You can also remove that folder from your user `PATH` via System Properties → Environment Variables, or with PowerShell.
- **Linux packages:** `sudo apt remove dina` or `sudo dnf remove dina` depending on your distro.
- **Nix:** `nix profile remove dina`.

To also remove local state:

- Credentials: delete `~/.config/dina/auth.json` (on Windows, `%USERPROFILE%\.config\dina\auth.json`).
- Agent skills: check `~/.claude/skills/` and similar directories for any `dina*` files.
