# dotenv-ctrl

> A CLI tool to control dotenv file

Latest version **0.1.1** (published 2021-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install dotenv-ctrl
pnpm add dotenv-ctrl
yarn add dotenv-ctrl
bun add dotenv-ctrl
```

Provides the command `dotenv-ctrl`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-02-07 |
| First published | 2021-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | P-Chan |
| Maintainers | p-chan |
| Keywords | dotenv |

## Links

- npm: https://www.npmjs.com/package/dotenv-ctrl
- Repository: https://github.com/p-chan/dotenv-ctrl
- Homepage: https://github.com/p-chan/dotenv-ctrl#readme
- Issues: https://github.com/p-chan/dotenv-ctrl/issues
- npm.io page: https://npm.io/package/dotenv-ctrl

## Dependencies (2)

- [cac](https://npm.io/package/cac.md) ^6.7.1
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-02-07
- 0.1.0 — 2021-02-07

## 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 <key> <value>`

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

### `remove <key>`

```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

---
_Source: https://npm.io/package/dotenv-ctrl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
