dotenvx run -f directory --convention=nextjs
Run a command using the Next.js convention from a directory. This is useful with monorepos.
The directory becomes the base for every file in the convention:
$ cd apps/web
dotenvx run -f ../.. --convention=nextjs -- node index.js
⟐ injected env (1) from ../../.env.development.local, ../../.env.local, ../../.env.development, ../../.env
Hello development local