﻿# $ dotenvx get KEY -f ../.. --convention=nextjs

> Return an environment variable using the Next.js convention from a directory. This is useful with monorepos

[dotenvx get](/docs/cli/get/)

```cli
$ dotenvx get -f directory + nextjs
```

## Usage

The directory becomes the base for every file in the convention:

```console
$ cd apps/web

$ dotenvx get HELLO -f ../.. --convention=nextjs
development local
```
