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

https://github.com/calasanmarko/groupenv

Sets groups of environment variables according to a config file
https://github.com/calasanmarko/groupenv

cli environment shell utility variable

Last synced: 10 months ago
JSON representation

Sets groups of environment variables according to a config file

Awesome Lists containing this project

README

          

# groupenv
Sets groups of environment variables according to a config file. Currently just a bash script, Windows support coming soon.

# Installation
Available as a npm package.

```
npm install -g groupenv
```

# Configuration
Sample configuration file:
```
{
"groups": {
"dev": [
{ "ENV1": "DEV_VAL" },
{ "ENV2": "DEV_VAL_2" }
],
"stage": [
{ "ENV1": "STAGE_VAL" }
],
"prod": [
{ "ENV1": "PROD_VAL" },
{ "ENV3": "SOMETHING" }
]
}
}
```

# Usage
```
Usage:
groupenv [-q]
groupenv [-q]

Options:
-q: Quiet mode (suppress output except for errors)

Applies all environment variables under the given group.
By default, the script looks for 'groupenv.json' in the current directory.
```

# License
Made by Marko Calasan, 2023.

This product is licensed under the **MIT License**.