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

> bach init writes a commented bach.toml, filled in from your project's files when it recognizes the framework, and adds a release workflow on GitHub.

`bach init` writes a first `bach.toml` for your project, with comments explaining the common settings.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach init
bach init path/to/project
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `DIR` | `.` | Folder to write `bach.toml` into (created if needed) |
| `--no-workflow` | off | Don't add the GitHub release workflow |

## What it does

* It never overwrites an existing `bach.toml`.
* When it recognizes your project, it fills in the name, version, publisher, program and build folder from your project files, and says which kind it found: `Wrote .\bach.toml for this Rust project. Check [app] and [files], then run bach check.`
* Otherwise it uses the folder's name (`hello-notes` becomes `Hello Notes`) and guesses `build` as the build folder.
* In a Git checkout whose `origin` is on GitHub, it turns on [`[updates]`](/docs/reference/config/updates) for that repository and writes `.github/workflows/bach-release.yml` (see [`bach workflow`](/docs/reference/cli/workflow)).
* It never chooses a window style; you get Bach's own.

## Recognized projects

Checked in this order: Godot, Unity, Tauri, Wails, Electron, .NET, Flutter, PyInstaller, Qt, Rust.

| Project | Found by | Fills in |
| - | - | - |
| Godot | `project.godot` (and `export_presets.cfg`) | name, version, program and folder of the Windows export (else `build/<name>.exe`) |
| Unity | `ProjectSettings/ProjectVersion.txt` | product, company, version, `Build/<product>.exe`, excludes the do-not-ship folders |
| Tauri | `src-tauri/tauri.conf.json` | product name, version, publisher from the identifier, Cargo's program name, `src-tauri/target/release`, WebView2 requirement |
| Wails | `wails.json` | name, version, company, `build/bin`, WebView2 requirement |
| Electron | `package.json` depending on `electron` | product name, version, author, `dist/win-unpacked` or `out/<name>-win32-x64` |
| .NET | a `*.csproj` | product, version, company, `bin/Release/<framework>/win-x64/publish`, `dotnet` requirement commented out (0.11.3 and earlier: not commented out) |
| Flutter | `pubspec.yaml` with `flutter:` | name, version, `build/windows/x64/runner/Release`, Visual C++ requirement |
| PyInstaller | a `*.spec` with `EXE(` | name, version from `pyproject.toml`, `dist/<name>` |
| Qt | `CMakeLists.txt` using Qt, or a `*.pro` | name, version, `build/Release`, Visual C++ requirement |
| Rust | `Cargo.toml` with `[package]` | name, version, first author, `target/release`, excludes build leftovers |

These are guesses. Check `[app]` and `[files]`, then run `bach check`.


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