@mazhu/dotenv-cli
v1.0.0
Published
Manage multiple .env files with encryption and validation
Downloads
131
Maintainers
Readme
@mazhu/dotenv-cli
Manage multiple .env files with encryption and validation.
Installation
npm install -g @mazhu/dotenv-cliOr use npx:
npx @mazhu/dotenv-cli <command>Commands
dotenv init
Initialize a new .env project.
dotenv initdotenv add
Add a .env file to the project.
dotenv add .env
dotenv add .env.localdotenv list
List all variables from tracked .env files.
dotenv listdotenv validate
Validate .env file format.
dotenv validatedotenv diff
Compare two .env files.
dotenv diff .env .env.localdotenv encrypt
Encrypt a .env file (or decrypt a .enc file).
dotenv encrypt .env
# Creates .env.enc
dotenv encrypt .env.enc
# Decrypts back to .envdotenv inject
Output export commands to inject variables into current shell.
# Source directly
source <(dotenv inject)
# Or specify file
source <(dotenv inject -f .env.local)License
MIT
