> ## 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 check

> bach check reads bach.toml, lists every file and option the installer will have and reports mistakes and warnings without building anything.

`bach check` tells you whether your config is valid and what the installer would contain, without building. Run it after every change. It works on every system.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach check
bach check installer/bach.toml
bach check --app-version v1.4.0
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `CONFIG` | `bach.toml` | The config file |
| `--app-version VERSION` | `app.version` | Check with this version (a leading `v` is dropped) |
| `--profile NAME` | main build | Check a [profile](/docs/reference/config/profiles.md) |
| `--platform NAME` | all in the config | `windows`, `macos` or `all` |
| `--strict` | off | Exit with code 1 on any warning. Also `BACH_STRICT=1`. |

## Output

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Hello Notes 1.0.0 is ready to build.
  Publisher    Your Name
  Program      hello-notes.exe
  Files        2 (4.0 KB)
  Installs to  %LOCALAPPDATA%\Programs\Hello Notes
  Options      desktop shortcut (offered, ticked), Start menu
  Languages    all 19 (follows Windows)
  Look         bach style, follows Windows' light or dark

      4.0 KB  hello-notes.exe
    28 bytes  welcome.txt
```

The summary also lists components, link schemes, file types, license, your own texts, requirements, run steps, shortcuts, registry values, variables, services, update feed, access and data folders when they apply. Files that belong to components show the component's id.

## Mistakes and warnings

A mistake stops with one sentence naming the setting, such as:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
app.executable is "hello.exe", but there's no such file or app in build (or it's excluded)
```

Warnings don't stop the check, but they're usually worth fixing: debug files or long paths in the build folder, a text translated into only one language, data folders that don't look like yours, unsigned programs when signing is set up. With `--strict`:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach.toml has 1 warning, and --strict treats it as an error: fix it, or run without --strict
```

See [Build errors](/docs/troubleshooting/build-errors.md).


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