terraform fmt
Format configuration according to Terraform language style conventions.
- 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
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).