$ dotenvx get KEY -f ../..

Return an environment variable from the .env file in a directory. This is useful with monorepos

dotenvx get

$ dotenvx get -f directory

Usage

From a workspace, point -f at the monorepo root to read its .env:


$ cd apps/web

$ dotenvx get HELLO -f ../..
World

When .env.keys sits beside the resolved .env, encrypted values are decrypted automatically.

markdown