0.1.1 • Published 3 years ago

dotenv-ctrl v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

dotenv-ctrl

A CLI tool to control dotenv file

Install

$ npm install dotenv-ctrl --save-dev

Usage

add <key> <value>

$ npx dotenv-ctrl add NODE_ENV production
$ cat .env
NODE_ENV=production

remove <key>

$ cat .env
NODE_ENV=production
NODE_DELETE_KEY=true
$ npx dotenv-ctrl remove NODE_DELETE_KEY
$ cat .env
NODE_ENV=production

Options

-e, --env

$ npx dotenv-ctrl add NODE_ENV development -e .env.development
$ cat .env.development
NODE_ENV=development

Author

@p-chan

License

MIT

0.1.1

3 years ago

0.1.0

3 years ago