Awesome Go

lazyenv

CategoryCommand Line
SubcategoryAdvanced Console UIs
Stars0

TUI for browsing, comparing, and editing .env files

About lazyenv

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

Frequently Asked Questions

What is lazyenv?

lazyenv is a Command Line library for the Go programming language. TUI for browsing, comparing, and editing .env files

How do I install lazyenv?

Install lazyenv with the Go module system using `go get lazynop/lazyenv`. Check the repository for the current installation instructions.

What category does lazyenv belong to?

lazyenv is listed under Command Line, specifically Advanced Console UIs.

← Back to Advanced Console UIs