terraform fmt
Format configuration according to Terraform language style conventions. More information: https://www.terraform.io/docs/commands/fmt.html.
- 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
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.