Star on GitHub - 5.8k

KEY -f

Return a single environment variable's value from a specific .env file.

Usage

$ echo "HELLO=World" > .env
echo "HELLO=production" > .env.production

dotenvx get HELLO -f .env.production
production