@exdeniz/lazyenv
v1.0.7
Published
TUI utility for switching .env files and running commands
Readme
lazyenv
🚀 A blazing-fast TUI for switching between
.envfiles and running npm scripts
✨ Features
- 🔍 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
📸 Preview

📦 Installation
npm install -g @exdeniz/lazyenvOr use directly with npx (no installation):
npx @exdeniz/lazyenv🚀 Usage
Run in your project root:
lazyenv⌨️ Keyboard Controls
| Key | Action |
| ------- | ------------------------------------ |
| ↑↓ | Navigate files / Scroll preview |
| Tab | Switch between panels |
| Enter | Select env file & open command modal |
| Esc | Close modal |
| q | Quit |
🔄 How It Works
- 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
📁 File Pattern
Works with any .env.* files:
.env.local
.env.development
.env.staging
.env.production🛠️ Development
# Install dependencies
bun install
# Run in dev mode
bun run dev
# Build
bun run build
# Lint
bun run lint📋 Requirements
- Node.js >= 18
📄 License
MIT
