env-vault-cli
v1.0.7
Published
EnvVault - Securely Retrieve & Manage Your Environment Variables
Maintainers
Readme
EnvVault
EnvVault is a CLI tool that helps you securely retrieve and manage your environment variables. It enables developers to authenticate, fetch, and manage .env files for different projects and environments with ease.
Features
- 🔒 Secure Login/Logout: Authenticate as a developer to access your environment secrets
- ⚡ Simple CLI interface for quick setup
- 🔑 Supports encrypted secrets for enhanced safety
- 🟢 Integrates smoothly with your existing workflow
- 📦 Fetch .env Files: Retrieve and save environment files interactively or using an access token.
- 📋 Project Listing: View all projects you have access to.
Installation
You can install EnvVault globally using npm:
npm install -g env-vaultOr use it locally in your project:
npm install env-vaultUsage
After installation, use the env-vault command in your terminal.
Command Overview
| Command | Description |
| -------- | ------------------------ |
| login | Login as developer |
| logout | Logout developer |
| list | List accessible projects |
| fetch | Fetch and save .env file |
Command Details
login
env-vault loginAuthenticate as a developer to access your environment variables.
logout
env-vault logoutLogout and clear your authentication session.
list
env-vault listList all projects you have access to.
fetch
env-vault fetch [options]Fetch and save the .env file for a specific project and environment.
Options:
-t, --token <token>: Access token for the.envfile.-e, --env <envType>: Environment type (dev,prod,test).-o, --output <path>: Output path for the.envfile.
Example:
env-vault fetch --token your-access-token --env prod --output ./prod.envIf no token is provided, you may be prompted interactively.
Version
View the current version:
env-vault -vor
env-vault --versionDependencies
Security
- Tokens and secrets are stored securely and never exposed in logs.
- Always logout after use if on a shared system:
env-vault logout.
License
MIT
