> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# bach doctor

> bach doctor checks the setup program, your config, preview support and signing tools, and says what to fix before a build will work.

Run `bach doctor` when a build doesn't work, or to check a new computer or CI runner.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach doctor
bach doctor path/to/bach.toml
```

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Bach 0.11.1 on windows (x86_64)
  Runtime      C:\...\bach-setup.exe (SHA-256 826ec6…)
  Runtime trust ...
  Config       bach.toml is valid: Hello Notes 1.0.0
  Preview      available
  Signing      off, signtool found (add [signing] and build with --sign)

Ready to build.
```

| Line | Meaning |
| - | - |
| Runtime | Where `bach-setup.exe` is, or that the first build will download it, or why it can't be used. With a `[macos]` section, also the Mac setup program. |
| Runtime trust | Whether this `bach` can verify the setup program against a built-in checksum |
| Config | Valid, with warnings counted; the error; or that there's no `bach.toml` (`bach init` writes one) |
| Preview | Whether `bach preview` works on this system |
| Signing | Whether a signing tool was found or `[signing]` is set. Signing is optional. |

It ends with `Ready to build.` or the number of problems to fix. The exit code is 0 either way; with `--json`, check `ready` and `problems`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.