---
name: exclude-dir
description: Skip HCL formatting in given directories.
type: string
env:
  - TG_EXCLUDE_DIR
---

Specifies directories to exclude from HCL formatting. This is useful when you want to skip formatting certain parts of your codebase.

Example:

```bash
terragrunt hcl fmt --exclude-dir=vendor --exclude-dir=.terragrunt-cache
```
