Skip to content
Using spredr

Variables and secrets

Your keys live encrypted in spredr, never in the repo. In the terminal you only see their names; changes apply from the next deploy.

terminal
$spredr vars
$spredr vars set DATABASE_URL=postgres://… LOG_LEVEL=info
$spredr vars unset OLD_KEY
importing

From a .env file

Upload every variable in a file at once, or pipe them through standard input.

terminal
$spredr vars import .env.production
$cat .env | spredr vars import -
namesUPPER_SNAKE_CASE, like DATABASE_URL.
valuesEncrypted and sealed for the machine that runs your service. Never shown in a terminal.
reading oneOnly from the panel, and every read shows in Activity.
when they applyFrom the service's next deploy.