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

dotenvx run

-f directory + nextjs

Run a command using the Next.js convention from a directory. This is useful with monorepos.

Usage

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