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

> bach preview opens the real install or removal window from your config without installing anything, with flags for theme, language, style and layout.

`bach preview` opens the window your users will see, with every step pretended. Nothing is installed or removed.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach preview
bach preview --theme dark --lang de
bach preview --uninstall
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `CONFIG` | `bach.toml` | The config file |
| `--uninstall` | off | Show the removal window |
| `--theme THEME` | from config | `system`, `light` or `dark` |
| `--lang CODE` | Windows' language | A language code such as `de` |
| `--style NAME` | from config | Try a built-in [style](/docs/reference/cli/styles.md) |
| `--layout NAME` | from config | Try a built-in [layout](/docs/reference/cli/layouts.md), replacing `[layout]` but keeping its pictures |
| `--profile NAME` | main build | Show a [profile](/docs/reference/config/profiles.md) (not a zip profile) |
| `--runtime PATH` | next to `bach` | The setup program to use. Also `BACH_RUNTIME`. |

An app with `[access]` shows the key page; any key works in a preview.

Preview needs Windows, or a Mac with a `[macos]` section for the Mac window. Elsewhere, use [`bach check`](/docs/reference/cli/check). To reload the window automatically while editing, use [`bach watch`](/docs/reference/cli/watch).


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