Skip to main content
bach feed-key makes the key pair that signs your update feeds. The private key goes into a file on your computer. The public key is what you put in bach.toml, so an installed app takes an update only when its feed entry carries your signature.

Using the key

1

Add the public key

Copy the public_key line the command prints into the [updates] section of bach.toml. See [updates].
2

Keep the private key secret

Keep the file out of Git. On macOS and Linux it is readable by you only. On Windows it gets the rights of its folder, so keep it somewhere only you can read.
3

Sign when you build

Set BACH_FEED_KEY to the file’s content, or BACH_FEED_KEY_FILE to its path, before bach build or bach feed. In CI, store the key as a secret. See Environment variables.
To change the key later without stranding installed copies, hand over in two releases with next_public_key. See Changing the key. The command needs no bach.toml and works on Windows, macOS and Linux.