Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p-chan/dotenv-ctrl
A CLI tool to control dotenv file
https://github.com/p-chan/dotenv-ctrl
dotenv
Last synced: 7 days ago
JSON representation
A CLI tool to control dotenv file
- Host: GitHub
- URL: https://github.com/p-chan/dotenv-ctrl
- Owner: p-chan
- Created: 2021-02-07T15:55:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-06T20:42:59.000Z (about 2 months ago)
- Last Synced: 2024-12-12T19:53:34.845Z (10 days ago)
- Topics: dotenv
- Language: TypeScript
- Homepage: http://npm.im/dotenv-ctrl
- Size: 553 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# dotenv-ctrl
> A CLI tool to control [dotenv](https://github.com/motdotla/dotenv) file
## Install
```bash
$ npm install dotenv-ctrl --save-dev
```## Usage
### `add `
```bash
$ npx dotenv-ctrl add NODE_ENV production
$ cat .env
NODE_ENV=production
```### `remove `
```bash
$ cat .env
NODE_ENV=production
NODE_DELETE_KEY=true
$ npx dotenv-ctrl remove NODE_DELETE_KEY
$ cat .env
NODE_ENV=production
```## Options
### `-e`, `--env`
```bash
$ npx dotenv-ctrl add NODE_ENV development -e .env.development
$ cat .env.development
NODE_ENV=development
```## Author
[@p-chan](https://github.com/p-chan)
## License
MIT