@dotenv-run/core

Load environment variables from .env files with monorepo support

npmmacoslinuxwindows
Try with needOr install directly
Source

About

core library to load environment variables with monorepo support

Commands

dotenv-run

Examples

run a command with environment variables loaded from .env file$ dotenv-run node app.js
load env variables for a specific package in monorepo$ dotenv-run --package my-app npm start
execute script with env variables from custom .env file$ dotenv-run --env .env.production npm run build
run development server with multiple env files loaded$ dotenv-run --env .env --env .env.local npm run dev
execute command and show which environment variables were loaded$ dotenv-run --verbose yarn test