env
What is a .env file?
text/plain
ENV files (dotenv) are plain-text lists of KEY=VALUE pairs used to define environment variables for an application, one per line with optional comments. They are conventionally excluded from version control because they often hold configuration and secrets. Parsing rules for quoting and interpolation vary by library.
How to use a .env file
Use an example env file to test dotenv parsers, key-value and quoting handling, and configuration loaders that inject variables into an application's environment.