diff --git a/content/terraform/v1.13.x/docs/cli/commands/fmt.mdx b/content/terraform/v1.13.x/docs/cli/commands/fmt.mdx index 871f800eb5..17dbe10045 100644 --- a/content/terraform/v1.13.x/docs/cli/commands/fmt.mdx +++ b/content/terraform/v1.13.x/docs/cli/commands/fmt.mdx @@ -51,6 +51,18 @@ By default, the `terraform fmt` command scans your current directory for configu * A specific file * Standard input by supplying a single dash (`-`). +### Examples +```shell +# Format specific files +terraform fmt load_balancer.tf auto_scaling_group.tf + +# Format a particular directory +terraform fmt ./app + +# Format all subdirectories within the root directory +terraform fmt -recursive +``` + The `terraform fmt` command accepts the following arguments. | Flag | Description | Required |