Plugin for Nexion that validates .env files against example templates, detecting missing variables and showing env var status in a sidebar panel.
- Auto-detect template — searches for
.env.dist,.env.example,.env.sample,.env.template - Robust parsing — handles comments, quoted values, and
KEY=VALUEformat - Full validation — categorizes variables as:
- ❌ Missing (in example but not in
.env) - ✅ Present (correctly set)
- ∅ Empty/default (empty or same as example)
- ➕ Extra (in
.envbut not in example)
- ❌ Missing (in example but not in
- Sidebar panel — visual display with status indicators
- Diff command — detailed comparison in a modal window
- Auto-create — creates
.envby copying from template on demand - Project open hook — auto-validates on project open with warning if variables are missing
| Command | Description |
|---|---|
dotenv.validate |
Manually validate the .env file |
dotenv.diff |
Show differences between .env and template |
dotenv.create |
Create .env from the example file |
- A template file (
.env.example,.env.dist,.env.sample, or.env.template) in the project root
filesystem.read— to read .env filesprocess.spawn— to copy the template file