Format Terraform files
Rewrites the .tf files of the current directory and its subdirectories in the canonical style and prints the files it changed.
terraform fmt -recursiveReport an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/terraform.md), licensed under CC BY 4.0.