---
name: queue-excludes-file
description: Path to a file with a list of directories that need to be excluded when running `run --all` commands.
type: string
defaultVal: .terragrunt-excludes
env:
  - TG_QUEUE_EXCLUDES_FILE
---

import { Aside } from '@astrojs/starlight/components';

<Aside type="tip" title="Alias for --filters-file">

This flag leverages the same underlying functionality as the [`--filters-file` flag](/reference/cli/commands/run#filters-file).

When using this flag, the `.terragrunt-excludes` file will be parsed, and converted to the equivalent filter expressions.

e.g.

```text
# excludes-file.txt
prod
```

```bash
terragrunt run --all --queue-excludes-file ./excludes-file.txt -- plan
```

is equivalent to:

```text
# filters-file.txt
!{./prod}
```

```bash
terragrunt run --all --filters-file ./filters-file.txt -- plan
```
</Aside>
