---
name: stdin
description: Format HCL from stdin and print result to stdout.
type: bool
env:
  - TG_STDIN
---

When enabled, Terragrunt will read HCL content from standard input, format it, and write the result to standard output. This is useful for integrating with text editors or other tools.

Example:

```bash
echo 'locals { foo="bar" }' | terragrunt hcl fmt --stdin
```
