TUI for managing .env files — written in Go with Bubble Tea.
Browse, compare, edit and validate environment variables from your terminal.
- Two-panel layout with file list and variables, inline editing
- File management: create, duplicate, rename, delete, and generate templates — all without leaving the TUI
- Side-by-side diff between two files with bidirectional copy
- Completeness matrix showing which variables exist across files
- Change tracking: new, modified, deleted, duplicate, empty, placeholder
- Secret masking, gitignore check, automatic backup — all configurable
- Clipboard support (OSC 52), search and sort
- Round-trip fidelity: saves preserve comments, blank lines, quoting
- TOML configuration: layout, colors, file patterns, behaviors
- Mouse support: click to select, scroll wheel to navigate (disable with
--no-mouse) - 56 built-in color themes with interactive preview (
--themes)
Homebrew (macOS & Linux):
brew install lazynop/tap/lazyenv
AUR (Arch Linux):
yay -S lazyenv-bin
Scoop (Windows):
scoop bucket add lazynop https://github.com/lazynop/scoop-bucket
scoop install lazyenv
Or download a binary from Releases, or install from source (requires Go 1.26+):
go install github.com/lazynop/lazyenv@latest
lazyenv # scan current directory for .env files
lazyenv path/to/dir # scan a specific directory
lazyenv -r # scan recursively into subdirectoriesSee the full documentation for usage & flags, configuration, and keybindings.
