1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 07:55:28 +02:00
tldr/pages/common/tofu-fmt.md
Coba b2854347d2
tofu: add page (#16031)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-03-27 23:50:19 +02:00

20 lines
450 B
Markdown

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