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.
Download example .env files
- Environment File (.env template)A sample environment (.env) file with typical configuration keys and placeholder values — for testing dotenv parsers and config loaders. Contains no real secrets.
- Environment File — Development (.env)SAMPLE .env file (development) for dotenv parser and config-loader tests — placeholders only.
- Environment File — Production Template (.env)SAMPLE .env file (production-template) for dotenv parser and config-loader tests — placeholders only.
- Environment File — Testing (.env)SAMPLE .env file (testing) for dotenv parser and config-loader tests — placeholders only.
- Environment File — Comments Edge (.env)SAMPLE .env file (comments-edge) for dotenv parser and config-loader tests — placeholders only.
- Config — Database Pool (ENV)Tiny SAMPLE ENV config fixture (database-pool) for parser and twin tests.
- Config — Smtp Relay (ENV)Tiny SAMPLE ENV config fixture (smtp-relay) for parser and twin tests.
- Sample App .envSample App .env — small deterministic fixture for parsers and the in-browser editor.