Terraform 1 · Core workflow

Format the code

Rewrite configuration files into the canonical style, including subfolders.

terraform fmt -recursive

Official Terraform 1 documentation

More core workflow commands

All core workflow commands · Terraform 1 cheatsheet

Was this page helpful?