The envcheck REPL (Read-Eval-Print Loop) provides an interactive shell for running environment variable checks with persistent configuration and session management.
Start the REPL in any of these ways:
# Run without arguments
envcheck
# Explicit REPL flag
envcheck --repl
envcheck -rRun envcheck commands directly without the envcheck prefix:
envcheck> . --format json
envcheck> ./src --fail-on missing
envcheck> . --ignore "**/*.test.js"The REPL maintains session state including:
- Command history
- Previous results
- Persistent configuration
- Session duration tracking
Set configuration once and it applies to all subsequent commands:
envcheck> :set format json
envcheck> :set path ./src
envcheck> :set failOn missing
envcheck> .
# Uses format=json, path=./src, failOn=missingSpecial commands start with : or .:
:config # Show current configuration
:set <key> <value> # Set a configuration value
:get <key> # Get a configuration valueAvailable configuration keys:
path- Directory to scan (default: ".")envFile- Path to .env.example (default: ".env.example")format- Output format: text, json, github (default: "text")failOn- Exit condition: missing, unused, undocumented, all, none (default: "none")noColor- Disable colors: true, false (default: false)quiet- Quiet mode: true, false (default: false)
:history # Show command history with timestamps
:results # Show summary of all previous results
:last # Show detailed last result
:clear # Clear history and results:help # Show REPL help
:exit # Exit the REPL
:quit # Exit the REPL (alias)$ envcheck
envcheck REPL - Interactive Environment Variable Checker
Type :help for available commands, :exit to quit