https://github.com/pierredemailly/menvs
Manage .env across projects
https://github.com/pierredemailly/menvs
Last synced: 3 months ago
JSON representation
Manage .env across projects
- Host: GitHub
- URL: https://github.com/pierredemailly/menvs
- Owner: PierreDemailly
- License: mit
- Created: 2023-10-11T22:22:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-01T04:55:17.000Z (10 months ago)
- Last Synced: 2025-03-16T16:23:26.513Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 235 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# menvs

[](https://github.com/PierreDemailly/menvs/commit-activity)
[](https://github.com/PierreDemailly/menvs/blob/main/LICENSE)
Manage .env across projects
## Requirements
- [Node.js](https://nodejs.org/en/) v18 or higher## Getting Started
This package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm).
```bash
$ npm i -g menvs
```Or use [npx](https://docs.npmjs.com/cli/v7/commands/npx).
```bash
$ npx menvs
```## Usage exemple
```bash
# save existing .env from project
$ cd path/to/project
$ menvs save
# reuse .env in another project
$ cd path/to/other/project
$ menvs pick
```
## Features
- Manage `.env` files across projects.
- Full interactive.
- Mark variables as **confidential** when includes `password` or `secret` (case insensitive) (i.e `DATABASE_PASSWORD` or `JWT_SECRET`).
- When updating config, allow to update all linked project `.env` files.## CLI
| 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 )## Contributors ✨
[](#contributors-)
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
## License
MIT