tofu fmt

Format configuration according to OpenTofu language style conventions. More information: https://opentofu.org/docs/cli/commands/fmt/.

tofu fmt

tofu fmt -recursive

tofu fmt -diff

tofu fmt -list=false