Release Notes - v0.4.0
🎉 What's New
We're excited to announce envx v0.4.0, which introduces powerful real-time monitoring and synchronization capabilities for environment variable management.
🔄 Watch Command - Auto-sync Environment Variables
The new watch command enables automatic synchronization between configuration files and your system environment variables:
-
Real-time File Monitoring: Automatically detect changes to .env, .yaml, .json and other configuration files
-
Flexible Sync Directions:
-
File-to-system (default): Apply file changes to environment
-
System-to-file: Capture system changes to files
-
Bidirectional: Keep files and system in perfect sync
-
Smart Filtering: Watch specific variables or patterns
-
Configurable Debouncing: Prevent excessive updates with customizable delays
# Watch .env file and apply changes automatically
envx watch .env
# Backup system changes to a file
envx watch --direction system-to-file --output backup.env
# Bidirectional sync with filtering
envx watch --direction bidirectional .env --vars DATABASE_URL API_KEY📊 Monitor Command - Track Environment Changes
The new monitor command provides read-only observation of environment variable changes:
- Real-time Change Detection: See additions, modifications, and deletions as they happen
- Advanced Filtering: Monitor specific variables, sources, or patterns
- Multiple Output Formats: Live updates, compact view, or JSON lines for processing
- Comprehensive Logging: Export detailed change logs and reports
- Zero Side Effects: Pure observation without modifying your environment
# Monitor all environment variables
envx monitor
# Track specific variables with logging
envx monitor PATH JAVA_HOME --log changes.json
# Monitor system variables only
envx monitor --source system --changes-only