Manage .env across projects
- Node.js v18 or higher
This package is available in the Node Package Repository and can be easily installed with npm.
$ npm i -g menvs
Or use npx.
$ npx menvs <command>
# save existing .env from project
$ cd path/to/project
$ menvs save
# reuse .env in another project
$ cd path/to/other/project
$ menvs pick
- Manage
.env
files across projects. - Full interactive.
- Mark variables as confidential when includes
password
orsecret
(case insensitive) (i.eDATABASE_PASSWORD
orJWT_SECRET
). - When updating config, allow to update all linked project
.env
files.
command | short | description |
---|---|---|
save | s | Save a new configuration from an existing .env |
pick | p | Generate a .env from an existing configuration |
list | l | List available configurations |
delete | d | Delete a configuration |
show | sh | Show configuration key-values |
update | u | Update configuration (key / value ) |
PierreDemailly 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT