Environment Variables
Keep secrets out of the repository, per project and per branch.
Set a variable
handoff env set asks for the value, so it never lands in your shell history. It applies from the next deploy.
$ handoff env set DATABASE_URL
✓ Saved for production
Values are encrypted at rest and are never printed in a build log.
One value per branch
A preview should not write to the production database. Give a branch its own value and every preview of it uses that.
$ handoff env set DATABASE_URL --branch staging
✓ Saved for staging
handoff env list- Show the names, never the values.
handoff env remove- Delete a variable from the next deploy on.
handoff env pull- Write the values to a local
.envfile.