dotenvx get KEY -fk

Specify a .env.keys file or a directory containing one.

$ cd apps/web

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

Here the workspace uses its own .env, while -fk ../.. loads the shared root .env.keys.