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

dotenvx get

-f directory + nextjs

Return an environment variable 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 get HELLO -f ../.. --convention=nextjs
development local