﻿# $ dotenvx get KEY -f ../..

> Return an environment variable from the .env file in a directory. This is useful with monorepos

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

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

## Usage

From a workspace, point `-f` at the monorepo root to read its `.env`:

```console
$ cd apps/web

$ dotenvx get HELLO -f ../..
World
```

When `.env.keys` sits beside the resolved `.env`, encrypted values are decrypted automatically.
