LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

terraform-fmt

Format Terraform configuration files

TLDR

Format current directory
$ terraform fmt
copy
Format recursively
$ terraform fmt -recursive
copy
Check formatting
$ terraform fmt -check
copy
Show diff
$ terraform fmt -diff
copy
Check formatting and show diff
$ terraform fmt -check -diff
copy
Format a specific directory
$ terraform fmt [path/to/directory]
copy

SYNOPSIS

terraform fmt [options] [dir]

DESCRIPTION

terraform fmt formats Terraform configuration files to canonical style. Ensures consistent formatting across files and teams. Run before commits or in CI.

PARAMETERS

-recursive

Process subdirectories.
-check
Check if formatted (exit 0 if yes).
-diff
Show formatting diff.
-write
Write changes (default true).
-list
List files with formatting differences (default true).
-no-color
Disable color output in diff.

INSTALL

sudo pacman -S terraform
copy
nix profile install nixpkgs#terraform
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid