docs/tutorials/saving-and-using-environment-variable-sets
Intermediate10 min

Saving and using environment variable sets

Stop hardcoding database URLs and API keys. Save env sets and load them with one command.

01Save an env set

recall env save staging? Variable name: DB_HOST? Value: staging-db.company.com? Variable name: API_KEY? Value: sk-staging-abc123? Variable name: (empty to finish)✔ Saved env set "staging" with 2 variables

02Load into your shell

eval $(recall env use staging)# Variables are now available:echo $DB_HOST # staging-db.company.comecho $API_KEY # sk-staging-abc123

03Switch environments instantly

eval $(recall env use production)# Instantly switch to production variables

Manage env sets

recall env listrecall env show stagingrecall env delete staging
// what's next
Use snippets for deployment scripts Integrate recall with CI/CD pipelines