> **Page index:** https://km.oslo.systems/llms.txt lists every page on this site, with a link to its Markdown version.

# `ok doctor`

Checks that your machine has the tools the Golden Path needs.

## Synopsis

Checks that your machine has the tools the Golden Path needs, and tells you how to fix what is missing.

It checks the tools from https://km.oslo.systems/set-up-your-machine/ plus git, that Terraform satisfies `>= 1.10.0, < 2.0.0` (the version the Golden Path templates require), and whether a newer `ok` is out. It never changes anything.

With --json, the report is printed to stdout as `{"ok": bool, "checks": [{"name", "status", "found", "required", "fix"}]}`, where status is pass, warn or fail.

Exits 1 if any check fails. Warnings never fail.

```
ok doctor [flags]
```

## Options

```
  -h, --help   help for doctor
      --json   Print the report as JSON
```

## See also

[`ok`](<https://km.oslo.systems/cli/ok/index.md>) - Manage infrastructure and project templates.
