We're excited to announce the first stable release of envcheck-cli - a zero-dependency CLI tool for validating environment variables across codebases.
envcheck scans your codebase and compares environment variable usage against your .env.example file. It catches three types of problems:
- MISSING - Variables used in code but not documented in .env.example
- UNUSED - Variables documented but not referenced anywhere
- UNDOCUMENTED - Variables that exist but lack explanatory comments
Built entirely with Node.js built-ins. No bloated node_modules, just fast and reliable tooling.
- JavaScript/TypeScript (.js, .jsx, .ts, .tsx, .mjs, .cjs)
- Python (.py)
- Go (.go)
- Ruby (.rb)
- Rust (.rs)
- Shell/Bash (.sh, .bash, .zsh)
- Human-readable text with color support
- JSON for scripting and automation
- GitHub Actions annotations for CI/CD
- Table format for structured display
Start an interactive session with persistent configuration, command history, and tab completion:
envcheck --replAuto-rerun validation when files change during development:
envcheck --watchAutomatically add missing variables to .env.example with smart defaults:
envcheck --fix- Typo detection with similarity scoring
- Context-aware example values
- Actionable hints for common issues
Save your settings in .envcheckrc.json for consistent team workflows:
{
"path": ".",
"envFile": ".env.example",
"failOn": "missing",
"ignore": ["node_modules/**", "**/*.test.js"]
}Configurable failure conditions and exit codes for automation:
envcheck --format github --fail-on allnpm install -g envcheck-cliOr run directly without installing:
npx envcheck-cli# Basic scan
envcheck
# Watch mode for development
envcheck --watch
# Auto-fix missing variables
envcheck --fix
# CI/CD integration
envcheck --format github --fail-on missing- Node.js 18.0.0 or higher
- README - Complete guide with origin story
- CLI Reference - All command-line options
- Configuration Guide - Config file setup
- REPL Guide - Interactive mode deep dive
- Examples - Real-world use cases
- Integrations - CI/CD platform guides
- Advanced Features - Plugins, caching, performance
- Architecture - How it works under the hood
Check out our ROADMAP for planned features including:
- Plugin system for custom scanners
- Additional language support
- Cloud configuration integration
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
Built with ☕, mild frustration, and the belief that developer tools should be both simple and powerful.