Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions content/terraform/v1.13.x/docs/cli/commands/fmt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading