Skip to content

A CLI-based UI for managing your environment variables.

Notifications You must be signed in to change notification settings

francescov1/dotenv-cli-manager

Repository files navigation

Dotenv CLI Manager

A CLI-based UI for managing your environment variables.

Version License

Overview

This generates a .env.{environment} file for each environment and lets you manage them all in one place.

env.editor.demo.mov

This project started as a fork of inquirer-table-prompt

Install

You can install this tool locally or globally

# local
npm install -D dotenv-cli-manager

# globl
npm install -g dotenv-cli-manager

Usage

⚠ Warning ⚠️ Still in development. Not recommended for production use. See In Development.

Create an env file for each environment and name it .env.{environment}:

touch .env.local .env.development .env.staging .env.production

Fill in your variables into each file. The examples folder has some .env files you can start with if you dont have any.

Projects are expected to use the same variable names across envs. If a varable shows up in any one of the env files, it will be given an empty value in all others. This is to enforce consistency and reduce the risk of missing variables in certain envs.

Run Dotenv CLI Manager

npx dcm

In Development

This project is in the early stages of development.

Roadmap

  • add new variable
  • add cursor to inline variable editor
  • user-provided config for env file paths
  • convert to TS
  • remote file editing
  • encrypted file editing

About

A CLI-based UI for managing your environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published