$ go install https://github.com/moecasts/with-env@latest
Usage
$ with-env -h
NAME:
with-env - Run command with environment variables from specific .env file
USAGE:
with-env [global options] command [command options]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--env value, -e value [ --env value, -e value ] path of the .env file (default: "~/.env", "./.env")
--help, -h show help