https://github.com/rawnly/env-manager
dead simple cli to manage env files
https://github.com/rawnly/env-manager
cli env rust shell
Last synced: 8 months ago
JSON representation
dead simple cli to manage env files
- Host: GitHub
- URL: https://github.com/rawnly/env-manager
- Owner: rawnly
- Created: 2023-09-29T10:23:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T11:08:26.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T12:39:49.954Z (over 1 year ago)
- Topics: cli, env, rust, shell
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# env-manager
Manage dotenv files via cli
## Installation
```
cargo install env-manager
```
Homebrew (soon)
```
brew tap rawnly/tap
brew install env-manager
```
## Usage
```sh
Usage: dotenv [OPTIONS]
Commands:
list Print all .env variables
list-files List all env files
set Set environment
get Get environment
help Print this message or the help of the given subcommand(s)
Options:
-s, --stage Set stage
-h, --help Print help
-V, --version Print version
```
## Example
```sh
http POST https://my-service-auth.com/auth/sign-in username=root password=toor \
| jq -r .accessToken \
| xargs dotenv set ACCESS_TOKEN
```
> Set the response accessToken to the `.env` file