# .env File

*noun*

say it: **“dot EN-vee file”** **/dɑt ˈɛnvi faɪl/**

A file of name and value lines that holds a project's settings and secrets for one computer, loaded by its scripts and never committed to Git.

## What is a **.env file**?

A **.env file** (read "dot env") holds the settings that belong to one computer, such as where to deploy and the token for the web host, one `NAME=value` per line. The project's scripts load it, so the token never sits inside a script. It's listed in `.gitignore` so it never goes into Git, and a `.env.example` with the names but no values shows others what to fill in.

```bash
# .env
DEPLOY_TARGET=../bakery-live
HOST_TOKEN=hx-7c41-demo-not-a-real-token
```

## In a sentence

- “Sam added the **.env file** to .gitignore before the first commit.”
- “The deploy token lives in the bakery's **.env file**, not in deploy.sh.”

Level: Journeyman · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/env-file
