https://github.com/justintime50/clienv
Source your environment variables from .env when running CLI commands.
https://github.com/justintime50/clienv
Last synced: 3 days ago
JSON representation
Source your environment variables from .env when running CLI commands.
- Host: GitHub
- URL: https://github.com/justintime50/clienv
- Owner: Justintime50
- License: mit
- Created: 2022-07-26T22:50:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T21:26:03.000Z (11 months ago)
- Last Synced: 2025-08-18T09:36:06.615Z (2 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# clienv
Source your environment variables from `.env` when running CLI commands.
[](https://github.com/Justintime50/clienv/actions)
[](https://github.com/justintime50/clienv/releases)
[](LICENSE)Sometimes you may want to source environment variables from a file (eg: `.env`) that is local to a specific project or somewhere in a parent directory - variables that may not exist in your shell config or you only want them on a single command run. Enter `clienv`, the CLI environment tool that sources your env vars found in env files.
## Install
```bash
# Setup the tap
brew tap justintime50/formulas# Install clienv
brew install clienv
```## Usage
1. Place a `.env` file in the root of your project or in a parent directory on the same path
2. Run `clienv` prior to any of your commands and the tool will source your `.env` variables for that command run. You can also chain multiple commands together.```bash
clienv my_command
```