| name | dotenvx |
| description | Use this skill when the user wants to manage environment variables securely. |
Dotenvx Plugin
A secure dotenv from the creator of dotenv. Advanced .env file management with encryption and interpolation.
Commands
Environment Management
dotenvx env run — Run command with environment variables from .env file
Usage Examples
- "dotenvx env run --command 'node index.js' --env_file .env"
- "dotenvx env run --command 'npm start' --debug"
Installation
npm install -g dotenvx
Examples
dotenvx run -- node index.js
dotenvx run --debug -- node index.js
dotenvx run --env="API_KEY=xxx" -- node index.js
dotenvx run --env-file .env.production -- node index.js
Key Features
- Variable interpolation (reference other env vars)
- Default values with fallback
- Alternate values
- Command substitution (output of commands as values)
- Multiline values
- Encryption support
- Multiple environments
- Debug mode for troubleshooting