---
name: queue-exclude-dir
description: Unix-style glob of directories to exclude from the queue of Units to run.
type: list(string)
env:
  - TG_QUEUE_EXCLUDE_DIR
---

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

<Aside type="tip" title="Alias for --filter">

This flag is an alias for the [`--filter` flag](/reference/cli/commands/run#filter).

When using this flag, the equivalent filter expression is used instead.

e.g.

```bash
terragrunt run --all --queue-exclude-dir "prod/**" -- plan
```

is equivalent to:

```bash
terragrunt run --all --filter "!{./prod/**}" -- plan
```
</Aside>
