npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cli-env-manager

v1.0.0

Published

A command-line interface tool for managing environment variables across different projects and environments.

Readme

Environment Manager CLI

A command-line interface tool for managing environment variables across different projects and environments. This CLI tool interacts with the Environment Manager API to help you manage your projects and their environments efficiently.

Features

  • 🔑 API Token Management
  • 📁 Project Management (Create, List, Find, Delete)
  • 🌍 Environment Management (Create, List, Delete, Download)
  • 🔒 Secure Token Storage
  • 📝 .env File Support
  • 🏷️ Project Name Support
  • 🔄 Smart Environment Naming
  • 📋 Variable Preview Before Creation

Installation

# Install from npm (once published)
npm install -g @your-scope/env-manager-cli

# Or install from source:
git clone <your-repo-url>
cd env-manager-cli
npm install
npm run build
npm link

Quick Start Guide

  1. First, set up your API token:
envmanager token set <your-api-token>
  1. Create a new project:
envmanager project create "my-project"
  1. Create an environment from a .env file:
envmanager environment create "my-project" "prod" -e ./prod.env

Command Reference

Token Management

# Set your API token
envmanager token set <your-api-token>

# View current token
envmanager token show

# Remove token
envmanager token remove

Project Commands

# List all projects
envmanager project list

# Find project by name
envmanager project find <name>

# Create project
envmanager project create <name>

# Delete project
envmanager project delete <name>

Environment Commands

# List environments
envmanager environment list <project-name>

# Create environment
envmanager environment create <project-name> [env-name] -e ./file.env

# Delete environment
envmanager environment delete <project-name> <env-name>

# Download environment
envmanager environment download <project-name> <env-name>          # Saves as <env-name>.env
envmanager environment download <project-name> <env-name> -f path  # Saves to custom path

Environment File Format

Your .env files should follow this format:

# Comments are supported
DATABASE_URL=postgresql://user:pass@localhost:5432/db
API_KEY=your-api-key

# Values can contain equals signs
COMPLEX_VALUE=key=value=something

# Values can be quoted
SECRET="my secret value"
OTHER_SECRET='another secret'

Token Storage

API tokens are stored securely in:

  • macOS/Linux: ~/.env-manager/token.json
  • Windows: %USERPROFILE%\.env-manager\token.json

Error Handling

The CLI provides clear error messages for:

  • Invalid API token
  • Project not found
  • Environment not found
  • Invalid .env file format
  • Network connectivity issues

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Link for local development
npm link

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT