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

dotenvx get

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