/ Search - type / Modes - type M Star on GitHub - 5.7k

dotenvx run

--env HELLO=String

Set environment variables as a simple KEY=value string pair.

Usage

$ echo "HELLO=World" > .env
echo "console.log('Hello ' + process.env.HELLO)" > index.js

dotenvx run --env HELLO=String -f .env -- node index.js
⟐ injected env (1) from .env, and --env flag
Hello String