Skip to main content
bach update updates the bach tool itself. It doesn’t touch your apps or setup files.

Copies managed by another tool

Only loose files, as installed by the scripts or the zip, update themselves. Otherwise bach update tells you the command: A system-wide install in %ProgramFiles%\bach-cli needs an administrator terminal, or run install.ps1 again with BACH_SCOPE=system.

How it replaces itself

It downloads the release and its .sha256, stops if they don’t match, checks that the new program runs and reports the right version, then swaps the files, keeping the old ones until all are in place.

Update notice

After a command in a terminal, bach says when a newer version exists. The check runs in the background, so it never slows you down; the first run after a release may say nothing. It’s off in CI, with --json, when output is piped, in source builds, and with BACH_NO_UPDATE_CHECK.

Errors

With --json: current, latest, update_available, install, and updated.