An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# menvs

![version](https://img.shields.io/badge/dynamic/json.svg?style=for-the-badge&url=https://raw.githubusercontent.com/PierreDemailly/menvs/main/package.json&query=$.version&label=Version)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge)](https://github.com/PierreDemailly/menvs/commit-activity)
[![mit](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](https://github.com/PierreDemailly/menvs/blob/main/LICENSE)
![build](https://img.shields.io/github/actions/workflow/status/PierreDemailly/menvs/node.js.yml?style=for-the-badge)

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
```

usage screenshot

## 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 ✨

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=for-the-badge)](#contributors-)



PierreDemailly
PierreDemailly

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## License
MIT