Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Start

Summary: log in, create a project, add secrets and run a program with them.

You need a server and an account on it; an instance admin sends you an invite link. Install secrets-chad from the releases, or with the GitHub Action in CI.

secrets-chad login --host secrets.example.com    # approve this device in the browser, then type the fingerprint
secrets-chad whoami
secrets-chad project create shop/dev             # a project with its first environment
secrets-chad -p shop env create prod             # more environments
secrets-chad -e shop/dev init                    # writes .secrets.toml with IDs; commit it

Add the names your program needs to .secrets.toml, so check can find missing ones:

required = ["DATABASE_URL", "SESSION_KEY"]

Fill and use them:

secrets-chad generate SESSION_KEY                # a random value, never shown
printf %s "$VALUE" | secrets-chad set DATABASE_URL
secrets-chad import .env                         # every key of a file, in one request
secrets-chad check                               # exit 1 if a required name is missing
secrets-chad ls
secrets-chad run -- ./server                     # values in this one process's environment
secrets-chad export --format env --out .env --merge

set NAME=VALUE is refused: a value in a command line ends up in shell history and in ps.

Spec: §11 CLI.