dotenvx run -f directory
Run a command using the .env file in a directory. This is useful with monorepos.
From a workspace, point -f at the monorepo root to load its .env:
$ cd apps/web
dotenvx run -f ../.. -- node index.js
⟐ injected env (1) from ../../.env
Hello World
When .env.keys sits beside the resolved .env, encrypted values are decrypted automatically.