github mikeleppane/envx v0.3.0
Release v0.3.0

latest releases: v0.6.2, v0.6.1, v0.6.0...
9 months ago

Release Notes - envx v0.3.0
🚀 What's New
We're excited to announce envx v0.3.0, introducing powerful project management capabilities and enhanced variable manipulation features!

🎯 Project-Specific Configuration
Manage environment configurations on a per-project basis with the new project management system:

  • Project Initialization: Set up config.yaml in your project root with envx project init

  • Required Variables: Define and validate required environment variables with patterns and examples

  • Auto-loading: Automatically load .env files and apply configurations when entering project directories

  • Project Scripts: Define and run project-specific scripts with custom environment settings

Configuration Validation: Ensure all required variables are set before running your application

# Initialize a project
envx project init --name "my-app"

# Add required variables
envx project require DATABASE_URL --pattern "^postgresql://.*"

# Validate and apply configuration
envx project check
envx project apply

🔄 Enhanced Variable Manipulation
New commands for efficient environment variable management:

Rename Variables

  • Rename single variables or use wildcards for batch operations

  • envx rename OLD_VAR NEW_VAR

  • envx rename APP_* MY_APP_*

Replace Values

  • Set new values for variables matching patterns

  • envx replace DATABASE_URL "postgres://prod-server/db"

  • envx replace API_* "REDACTED"

Find & Replace

  • Search and replace text within variable values

  • envx find-replace localhost production.server.com

  • envx find-replace "old-path" "new-path" --pattern "*_PATH"

🛡️ Improved Error Handling

  • User-friendly error messages with contextual help

  • Clear guidance for permission issues, missing resources, and configuration errors

  • Debug mode support with RUST_BACKTRACE=1 for detailed diagnostics

Don't miss a new envx release

NewReleases is sending notifications on new releases.