@dotenv/cli

CLI to interact with dotenv

Showing:

Popularity

Downloads/wk

113

GitHub Stars

6

Maintenance

Last Commit

6d ago

Contributors

0

Package

Dependencies

10

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

@dotenv/cli

@dotenv/cli

Dotenv cli is a command line tool that syncs your .env files across machines and between your team members. It's like 1Password, but for developers. Designed by the same people that brought you dotenv, it's a completely optional (but recommended) plugin for dotenv.

oclif Version Downloads/week License

Install

# install globally (recommended)
npm install @dotenv/cli -g # optionally run with sudo npm install @dotenv/cli -g

or

# install locally
npm install @dotenv/cli --save-dev

Usage

In your terminal (and in your project folder), initialize dotenv the same way you initialize git.

dotenv-cli init

This will create (if not existing) a

  • .env file
  • .env.me file
  • .env.project file

Make changes to your .env file and when you do, run:

dotenv-cli push

If you need to pull changes that another teammate made, run:

dotenv-cli pull

That's it!

Commands

dotenv-cli help [COMMAND]

display help for dotenv-cli

USAGE
  $ dotenv-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

Development

NODE_TLS_REJECT_UNAUTHORIZED=0 DOTENV_API_URL=https://cli.dotenv.development ./bin/run

Testing

yarn test

Publishing

Only for those with permission.

npm publish

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100