Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/francescov1/dotenv-cli-manager
A CLI-based UI for managing your environment variables.
https://github.com/francescov1/dotenv-cli-manager
Last synced: 5 days ago
JSON representation
A CLI-based UI for managing your environment variables.
- Host: GitHub
- URL: https://github.com/francescov1/dotenv-cli-manager
- Owner: francescov1
- Created: 2021-06-21T01:15:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T00:27:07.000Z (about 3 years ago)
- Last Synced: 2024-04-24T04:32:32.134Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotenv CLI Manager
A CLI-based UI for managing your environment variables.
[![Version](https://img.shields.io/npm/v/dotenv-cli-manager.svg)](https://npmjs.org/package/dotenv-cli-manager)
[![License](https://img.shields.io/npm/l/dotenv-cli-manager.svg)](https://github.com/francescov1/dotenv-cli-manager/blob/master/package.json)## Overview
This generates a `.env.{environment}` file for each environment and lets you manage them all in one place.
https://user-images.githubusercontent.com/26126685/122695071-6375bb80-d20d-11eb-8a87-5994c8146273.mov
_This project started as a fork of [inquirer-table-prompt](https://github.com/eduardoboucas/inquirer-table-prompt)_
## Install
You can install this tool locally or globally
```bash
# 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](#in-development).
Create an env file for each environment and name it `.env.{environment}`:
```bash
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
```bash
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