1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/terraform-fmt.md
2024-11-04 09:34:38 +05:30

20 lines
491 B
Markdown

# terraform fmt
> Format configuration according to Terraform language style conventions.
> More information: <https://developer.hashicorp.com/terraform/cli/commands/fmt>.
- Format the configuration in the current directory:
`terraform fmt`
- Format the configuration in the current directory and subdirectories:
`terraform fmt -recursive`
- Display diffs of formatting changes:
`terraform fmt -diff`
- Do not list files that were formatted to `stdout`:
`terraform fmt -list=false`