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

> bach feed writes latest.json for a finished setup file: all flags for links, release notes, rollouts, patches, ARM64 and macOS, and the format.

The update feed, `latest.json`, tells installed apps which version is newest. `bach build` writes it when it knows the download address. Use `bach feed` to write it again, for example after signing, or to add notes or a rollout.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach feed "dist/Hello-Setup-1.4.0.exe" --notes "Faster start"
bach feed dist/Hello-Setup-1.4.0.exe --url https://example.com/hello/Hello-Setup-1.4.0.exe
```

| Argument or flag | Meaning |
| - | - |
| `FILE` | The full setup file (not an online installer, uninstaller or patch) |
| `--url URL` | `https` download address. Default from `[updates]` in the config. |
| `--config FILE` | Config to take addresses from, default `bach.toml` here |
| `--notes TEXT` | What's new |
| `--notes-file FILE` | What's new from a file (not with `--notes`) |
| `--rollout 0-100` | Offer to this percentage of computers |
| `-o`, `--out FILE` | Default: `latest.json` next to the setup file |
| `--arm64 FILE`, `--arm64-url URL` | List an ARM64 setup file |
| `--macos FILE`, `--macos-url URL` | List a Mac setup file |
| `--patch FILE`, `--patch-url URL` | Offer an update patch (always offered, whatever its size) |

With a `public_key` in `[updates]`, set `BACH_FEED_KEY` or `BACH_FEED_KEY_FILE`; without it, `bach feed` refuses.

## The file

```json latest.json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "version": "1.4.0",
  "url": "https://example.com/hello/Hello-Setup-1.4.0.exe",
  "sha256": "<checksum of the setup file>",
  "notes": "Faster start",
  "size": 10187776
}
```

| Field | Meaning |
| - | - |
| `version` | Read from the setup file |
| `url` | Download address |
| `sha256`, `size` | Of the file on disk, so run this on the final, signed file |
| `notes` | Optional, cut at 4000 characters |
| `rollout` | Only with `--rollout` |
| `delta` | Patch: `from`, `url`, `sha256`, `size` |
| `arch` | ARM64 and macOS entries |

Signed feeds also carry a signature and the time of signing.


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