terraform fmt

From wikieduonline
Revision as of 18:55, 21 February 2022 by Chmod15 (talk | contribs)
Jump to navigation Jump to search

The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.

Usage: terraform fmt [options] [DIR]

terraform fmt
(no output)
terraform fmt
main.tf
terraform fmt 
main.tf
variables.tf
(no output)
  • -diff - Display diffs of formatting changes

Related commands

See also

Advertising: