#env-file #command-line-tool #read #process #starting #echo #utility

app pushenv

A CLI utility that reads a .env file before starting a process. Example usage: pushenv -- echo $SOME_VAR pushenv some.env.file -- echo $SOME_VAR

2 stable releases

1.1.2 May 27, 2024
1.1.1 May 20, 2024
1.0.0 May 16, 2024
0.1.1 May 16, 2024
0.1.0 May 8, 2024

#342 in Command line utilities

Download history 128/week @ 2024-05-06 203/week @ 2024-05-13 295/week @ 2024-05-20 163/week @ 2024-05-27 4/week @ 2024-06-03 3/week @ 2024-06-10

472 downloads per month

GPL-3.0 license

21KB
77 lines

pushenv

A CLI utility that reads a .env file before starting a process

Installation

You can install pushenv using Cargo, the Rust package manager, or by downloading a precompiled binary from the latest release.

cargo install pushenv

Example usage

Without specifying an env file

This will attempt to read the .env file in the current directory.

pushenv -- echo $SOME_VAR

Specifying an env file

You can specify an env file to read from as the first argument.

pushenv some.env.file -- echo $SOME_VAR

Dependencies

~1.3–1.9MB
~36K SLoC