Skip to main content
bach is the command you use to make installers. This page lists every command; each has its own page with all flags. Run bach without arguments to see the same list grouped by task, and bach <command> --help for one command’s options.

Everyday commands

Looking at and testing setup files

The window’s look

Releasing and publishing

Setup and Bach itself

Global flags

With --json, the object holds ok, warnings and, for most commands, fields about the result, such as setup, version, sha256 and size after a build. An error gives {"ok": false, "error": "..."}. The fields are described in schema/bach-output.schema.json. bach watch has no JSON result.

Exit codes

0 means success. Anything wrong prints a sentence and exits with a non-zero code, so you can use bach in scripts and CI.

Config path

Commands that read a config use bach.toml in the current folder unless you give another path. Paths inside the config are relative to the config file.

Systems

Almost every command works on Windows, macOS and Linux. The exceptions:
  • preview and watch need Windows (Windows window) or macOS (Mac window).
  • test needs Windows.
  • Only a build on Windows applies your icon and details to a Windows setup file.

Update notice

When a newer Bach exists, commands run in a terminal end with a line saying so and how to update. It’s not shown in CI, with --json or when output is piped. BACH_NO_UPDATE_CHECK turns it off.