---
name: file
description: The path to a single hcl file that the hclfmt command should run on.
type: string
env:
  - TG_FILE
---

Specifies a single HCL file to format instead of recursively searching for files. This is useful when you want to format just one specific file.

Example:

```bash
terragrunt hcl fmt --file=./environments/prod/terragrunt.hcl
```
