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.
Files
When they’re next tobach.toml:
bach.toml(app.version)package.json,package-lock.json,npm-shrinkwrap.jsonCargo.tomlandCargo.lock, also undersrc-tauri/(only your own crates; aversion.workspace = trueis 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.
patchon1.5.0-rc.1gives1.5.0. - Listing exits with code 1 if files disagree.
- Only the version text changes; formatting stays.
--json: version, plus files when listing, or dry_run and changed when raising.