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

> bach feed-key creates the key pair that signs update feeds, writes the private key to a file and prints the public_key line for bach.toml.

`bach feed-key` creates the keys for [signed update feeds](/docs/guides/update-security.md#sign-the-update-feed). It needs no config and works on every system.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach feed-key
bach feed-key --out secrets/feed-key.private
```

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Wrote the private key to feed-key.private. Keep it secret and out of Git; it signs your update feeds.
Put this in bach.toml:

[updates]
public_key = "<public key>"

Sign with it by setting BACH_FEED_KEY to the file's content (or BACH_FEED_KEY_FILE to its path) when you run `bach build` or `bach feed`.
```

| Flag | Default | Meaning |
| - | - | - |
| `-o`, `--out FILE` | `feed-key.private` | Where to write the private key. Must not exist. |

On macOS and Linux the file is readable only by you; on Windows it has its folder's permissions.


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