---
name: format
description: |
  Format the results as specified. Supported values (text, json). Default: text.
type: string
env:
  - TG_FORMAT
---

This is particularly useful when you need to process the results programmatically or integrate with other tools.

Example:

```bash
$ terragrunt find --format=json | jq '.[:3]'
[
  {
    "type": "stack",
    "path": "basic"
  },
  {
    "type": "unit",
    "path": "basic/units/chick"
  },
  {
    "type": "unit",
    "path": "basic/units/chicken"
  }
]
```
