Skip to content
EANVI

What is a .env file?

A .env file is a plain-text list of KEY=value pairs used to populate environment variables for local development and sometimes for simple deployments.

Anatomy of a .env file

Each line assigns a value. Comments start with #. Quotes are sometimes used for values with spaces. There is no single formal standard, but tooling converges on familiar conventions.

# Example only — never commit real secrets
DATABASE_URL=postgresql://user:password@localhost:5432/app
API_KEY=your_api_key_here
NODE_ENV=development

How apps load .env files

Frameworks and libraries read the file and assign values onto the process environment before your app boots. Production platforms often inject variables directly instead of shipping a file.

Where secrets managers fit

A secrets manager stores the canonical encrypted values. A .env file becomes a local checkout generated by a CLI pull — useful for runtimes, not for team distribution.

Related resources

Try EANVI

Create a workspace, import a .env, and pull secrets from the CLI.