🚀 A blazing-fast TUI for switching between
.envfiles and running npm scripts
- 🔍 Auto-discover all
.env.*files in your project - 🎨 Interactive TUI built with React + Ink
- 📋 Dual-panel interface with live file preview
- 🎯 Command modal for selecting npm scripts
- 🚀 One-click workflow: select env → copy to
.env→ run command - ⌨️ Intuitive keyboard navigation
- 🖥️ Clean terminal experience with alternate screen buffer
npm install -g @exdeniz/lazyenvOr use directly with npx (no installation):
npx @exdeniz/lazyenvRun in your project root:
lazyenv| Key | Action |
|---|---|
↑↓ |
Navigate files / Scroll preview |
Tab |
Switch between panels |
Enter |
Select env file & open command modal |
Esc |
Close modal |
q |
Quit |
- Scans current directory for
.env.*files - Displays interactive list with syntax-highlighted preview
- On selection, copies chosen file to
.env - Reads scripts from your
package.json - Shows modal to select which command to run
- Executes command with new environment variables
Works with any .env.* files:
.env.local
.env.development
.env.staging
.env.production
# Install dependencies
bun install
# Run in dev mode
bun run dev
# Build
bun run build
# Lint
bun run lint- Node.js >= 18
MIT
Made with ❤️ by @exdeniz
