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

> bach version lists the version in bach.toml, package.json, Cargo, Tauri and .NET files, or raises it in all of them at once, keeping formatting.

`bach version` keeps your version number the same in every file that has one. It's separate from `bach --version`, which shows Bach's own version.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach version              # list what each file says
bach version patch        # 1.4.2 → 1.4.3
bach version minor
bach version 2.0.0-rc.1   # an exact version
bach version current      # write the current version everywhere
bach version minor --dry-run
```

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach.toml: 1.4.2 → 1.5.0
package.json: 1.4.2 → 1.5.0
package-lock.json: 1.4.2 → 1.5.0
1.5.0
```

| Argument or flag | Meaning |
| - | - |
| `TARGET` | `patch`, `minor`, `major`, `current` or an exact version. Without it, versions are listed. |
| `--config FILE` | The config; version files are the ones next to it |
| `--dry-run` | Show what would change without writing |

## Files

When they're next to `bach.toml`:

* `bach.toml` (`app.version`)
* `package.json`, `package-lock.json`, `npm-shrinkwrap.json`
* `Cargo.toml` and `Cargo.lock`, also under `src-tauri/` (only your own crates; a `version.workspace = true` is left alone)
* `src-tauri/tauri.conf.json`
* `*.csproj` (`<Version>`, unless it's a property)

## Behavior

* The new version is printed to standard output; changed files are listed on standard error, so a script can capture just the version.
* The starting point is `bach.toml`'s version. Files that disagree are all set to the new one.
* An exact version can't be lower than the current one. `patch` on `1.5.0-rc.1` gives `1.5.0`.
* Listing exits with code 1 if files disagree.
* Only the version text changes; formatting stays.

With `--json`: `version`, plus `files` when listing, or `dry_run` and `changed` when raising.


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