﻿# $ dotenvx run -f ../..

> Run a command using the .env file in a directory. This is useful with monorepos

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

```cli
$ dotenvx run -f directory
```

## Usage

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

```console
$ cd apps/web

$ dotenvx run -f ../.. -- node index.js
⟐ injected env (1) from ../../.env
Hello World
```

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