macOS
brew install tfsortlocal Homebrew formula metadata
brew / rank 7598
CLI to sort Terraform variables and outputs. Version 0.7.1 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#tfsort.
install
brew install tfsortlocal Homebrew formula metadata
nix profile install nixpkgs#tfsortnixpkgs package indexes · pkgs/by-name/tf/tfsort/package.nix · source: api.github.com
overview
CLI to sort Terraform variables and outputs
history
tfsort is a small Terraform/HCL formatting utility. Its README describes a CLI for alphabetically sorting Terraform `variable`, `output`, `locals`, and `terraform` blocks, while also cleaning spacing and leading or trailing newlines.
The project was created by Alexander Nabokikh and is distributed as a Go-based command-line tool. Its release page shows continuing releases through v0.7.1 in July 2025.
The README documents installation through Homebrew, Nix, Chocolatey, Go install, binary releases, and source builds. The input metadata records Homebrew and Nix packaging.
The package-nerd use case is local cleanup of Terraform repositories: run `tfsort` on a file, feed it stdin, or process a directory recursively. The README documents dry-run mode and recursive processing while skipping `.git`, `.terraform`, and `.terragrunt-cache`.
tfsort sits in the small-tool layer around Terraform: it does not replace `terraform fmt`, but gives users a packageable CLI for opinionated ordering of common HCL blocks in `.tf`, `.hcl`, and `.tofu` files.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tfsort | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:tfsort |
|---|---|
| Version | 0.7.1 |
| Package manager | Homebrew |
| Homepage | https://github.com/AlexNabokikh/tfsort |
| Repository | https://github.com/AlexNabokikh/tfsort |
| Last updated | 2026-07-26T00:50:39+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tfsort
nix profile install nixpkgs#tfsortsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.