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

# Contribute to Bach

> How to help: report bugs, improve translations and docs, or send code, how to build Bach and run its checks, and how to write commits.

Bug reports, ideas, documentation, translations and code are welcome. This is the short version of [CONTRIBUTING.md](https://github.com/usebach/bach-installer/blob/main/CONTRIBUTING.md). Everyone follows the [Code of Conduct](https://github.com/usebach/bach-installer/blob/main/CODE_OF_CONDUCT.md).

## What fits Bach

* One small config file with good defaults, no scripting language
* A calm window with few choices and readable errors, and no administrator prompt unless asked for
* Safe by design: nothing outside the install folder, and only removing what was installed
* Updates that work, and setup files that keep working

## Build from source

You need Rust (stable) and, on Windows, the Visual Studio C++ build tools. On a Mac, GPUI also needs the Metal toolchain (`xcodebuild -downloadComponent MetalToolchain`).

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
git clone https://github.com/usebach/bach-installer.git
cd bach
cargo build --release
```

See the window without installing:

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

## Before a pull request

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
```

* Look at window changes with `--preview` in light and dark, with long names and paths.
* Only install the example app for real tests (`scripts/e2e.ps1`, or `scripts/e2e-macos.sh` on a Mac).
* Add tests, including the unsafe case for path, install and launch code.
* Update these docs, `schema/bach.schema.json` and `skills/bach/SKILL.md` when behavior changes.
* Window text needs every language in `bach_pack::i18n`.
* Use Bun for JavaScript.

## Commits

Small commits that each pass the tests, with an imperative subject starting with a verb such as "Add" or "Fix"; the changelog is made from them. Branch from `main`, fill in the pull request template and say what you checked. Never commit secrets, `target/`, `dist/` or `node_modules/`.


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