Project Awesome project awesome

Advanced Console UIs > lazyenv

TUI for browsing, comparing, and editing .env files.

Package 39 stars GitHub

lazyenv

CI Go Report Card GoDoc GitHub tag GitHub Downloads GitHub repo size

TUI for managing .env files — written in Go with Bubble Tea.

Browse, compare, edit and validate environment variables from your terminal.

Documentation | Releases

lazyenv demo

Features

  • 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)

Install

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

Quick start

lazyenv                  # scan current directory for .env files
lazyenv path/to/dir      # scan a specific directory
lazyenv -r               # scan recursively into subdirectories

See the full documentation for usage & flags, configuration, and keybindings.

License

MIT

Back to Go