@automate-army/envhub
v1.0.13
Published
CLI tool for managing environment variables across your team
Readme
@automate-army/envhub
A CLI tool for managing environment variables across your team.
Installation
npm install -g @automate-army/envhubUsage
The CLI stores its configuration in:
- Windows:
%APPDATA%\envhub\config.json - macOS/Linux:
~/.config/envhub/config.json
Login
First, login to envhub with your API endpoint and token:
envhub login -e http://localhost:3001 -t your-token -p project-labelPull Environment Variables
Pull environment variables from the server:
envhub pullThis will:
- Create a new .env file if it doesn't exist
- Append new variables to existing .env file without overwriting existing ones
Push Environment Variables
Push your local environment variables to the server:
envhub pushThis will:
- Read your local .env file
- Upload all variables to the server
Commands
envhub login: Login to envhub-e, --endpoint <url>: API endpoint URL-t, --token <token>: Authentication token-p, --project <label>: Project label (e.g., indexguru-api, macaronikid-admin)
envhub list: List all available projectsenvhub pull: Pull environment variables from the serverenvhub push: Push environment variables to the server
Examples
# Login for Indexguru API project
envhub login -e http://localhost:3001 -t your-token -p indexguru-api
# Login for Macaronikid Admin project
envhub login -e http://localhost:3001 -t your-token -p macaronikid-admin
# Pull variables
cd my-project
envhub pull
# After making changes to .env
envhub pushDevelopment
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build - Link for local development:
npm link
License
MIT © Automate Army
