# Commands

Every command shares the same policy engine and the same global flags; they differ only in what they do with the verdict. The four you reach for most:

| Command | What it does |
|---|---|
| [`outdated`](https://romnn.github.io/cooldown/docs/commands/outdated/) | What could update, split into adoptable-now vs in-cooldown. |
| [`upgrade`](https://romnn.github.io/cooldown/docs/commands/upgrade/) | Move the graph to the newest matured version; re-locks. |
| [`fix`](https://romnn.github.io/cooldown/docs/commands/fix/) | Downgrade too-fresh dependencies to a matured version to clear a violation. |
| [`check`](https://romnn.github.io/cooldown/docs/commands/check/) | The CI gate over the resolved lockfile graph (fail-closed). |

Two more pages cover the rest:

- **[Other commands](https://romnn.github.io/cooldown/docs/commands/other/):** the smaller commands `baseline`, `explain`, `config`, `init`, `schema`, `sync`, `recover`, and [`prune`](https://romnn.github.io/cooldown/docs/commands/other/#prune).
- **[CLI reference](https://romnn.github.io/cooldown/docs/commands/cli-reference/):** the global flags and the exit-code contract.

## How they relate

`outdated` and `upgrade` look **forward** — what newer version could or should you move to. `check` and `fix` look at the **current** state — is anything you have resolved right now too fresh, and how do you get back to green.

All four reason over the **resolved graph** by default, not just your manifest: a `^1.4` you declared pulls in transitive dependencies, and those are part of the risk surface. How each command treats transitive dependencies is controlled by `--transitive` (see the flags of [`check`](https://romnn.github.io/cooldown/docs/commands/check/#flags) and [`fix`](https://romnn.github.io/cooldown/docs/commands/fix/#flags)), with a strict, act-on-them default that you opt out of, never into.

> [!NOTE]
> Any command can be run with two flags:
>
> - **`--json`:** machine-readable output, whose schema [`cooldown schema`](https://romnn.github.io/cooldown/docs/commands/other/) prints.
> - **`--dry-run`:** resolve and print a plan without mutating anything.
