terraform-fmt
Format configuration according to Terraform language style conventions. tldr-pages
On several platforms
Several platforms
Format the configuration in the current directory
terraform fmtIdentifyFormat the configuration in the current directory and subdirectories
terraform fmt -recursiveIdentifyDisplay diffs of formatting changes
terraform fmt -diffIdentifyDo not list files that were formatted to stdout
terraform fmt -list=falseIdentify