Guides

.env, done right.

Practical answers to the .env problems every developer hits: the Terminal way first, then the one-click way with Dotvane.

How to manage multiple .env files: local, staging and productionFour ways to switch a project between .env.local, .env.staging and .env.production on a Mac, and the trade-offs of each.
How to keep .env out of git, and what to do if you committed itIgnore .env properly, check git really ignores it, and clean up after a commit: untrack, rotate keys, rewrite history.
How to store .env secrets in the macOS Keychain instead of plain filesKeep API keys out of plain-text .env files with the macOS Keychain and the security command, then load them at run time.
Keep .env and .env.example in sync, and find missing keysFind keys in .env.example that are missing from .env with one shell command, regenerate the example, and check every run.

Still have a question?

Write to the developer. Every email gets a reply.

[email protected]