dotenv-rs / dotenv

Library to help supply environment variables in testing and development
MIT License
566 stars 45 forks source link

Allow multiple env file loads #89

Open NickLarsenNZ opened 1 year ago

NickLarsenNZ commented 1 year ago

Allow multiple env file loads, with subsequent definitions overriding previous.

dotenv -f global.env -f instance1.env <command>
dotenv -f global.env -f instance2.env <command>

The nodejs dotenv CLI does this with multiple -e options.