Skip to main content
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 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.