Socket
Socket
Sign inDemoInstall

@dotenv/cli

Package Overview
Dependencies
109
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dotenv/cli

CLI to interact with dotenv


Version published
Weekly downloads
911
increased by11.78%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.6.0 and prior

Please see commit history.

Readme

Source

@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), create a new .env.project file.

dotenv-cli new

This will ask you to visit Dotenv to create your project. Follow that for instructions on setting your .env.project file.

Then 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

Keywords

FAQs

Last updated on 04 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc