From 10f6f2a68ed725fa6bb77f4e9493eec8784164fc Mon Sep 17 00:00:00 2001 From: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Date: Sun, 5 Apr 2020 13:02:58 -0700 Subject: [PATCH] terraform-fmt: add page (#3958) --- pages/common/terraform-fmt.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/terraform-fmt.md 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`