diff --git a/pages/common/terraform-fmt.md b/pages/common/terraform-fmt.md new file mode 100644 index 000000000..36a9e21f5 --- /dev/null +++ b/pages/common/terraform-fmt.md @@ -0,0 +1,20 @@ +# terraform fmt + +> Format configuration according to Terraform language style conventions. +> More information: . + +- 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`