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
- Host: GitHub
- URL: https://github.com/calasanmarko/groupenv
- Owner: calasanmarko
- License: mit
- Created: 2023-10-10T13:29:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-11T22:30:02.000Z (over 2 years ago)
- Last Synced: 2024-04-26T11:46:47.756Z (almost 2 years ago)
- Topics: cli, environment, shell, utility, variable
- Language: Shell
- Homepage: https://www.npmjs.com/package/groupenv
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**.