A CLI utility that reads a .env file before starting a process
You can install pushenv
using Cargo, the Rust package manager, or by
downloading a precompiled binary from the latest release.
cargo install pushenv
This will attempt to read the .env
file in the current directory.
pushenv -- echo $SOME_VAR
You can specify an env file to read from as the first argument.
pushenv some.env.file -- echo $SOME_VAR