1.0.13 • Published 11 months ago

@automate-army/envhub v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@automate-army/envhub

A CLI tool for managing environment variables across your team.

Installation

npm install -g @automate-army/envhub

Usage

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-label

Pull Environment Variables

Pull environment variables from the server:

envhub pull

This 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 push

This 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 projects

  • envhub pull: Pull environment variables from the server
  • envhub 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 push

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Link for local development: npm link

License

MIT © Automate Army

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago