pkg.soopen package index

brew / rank 7600

Install tfsort with Homebrew, Nix

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

Additional install commands

macOS

Homebrewverified · 100%
brew install tfsort

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#tfsort

nixpkgs package indexes · pkgs/by-name/tf/tfsort/package.nix · source: api.github.com

overview

Package summary

CLI to sort Terraform variables and outputs

Commands and aliases

  • tfsort

history

Project history and usage

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.

Project history

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.

Adoption history

The README documents installation through Homebrew, Nix, Chocolatey, Go install, binary releases, and source builds. The input metadata records Homebrew and Nix packaging.

How it is used

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`.

Why package nerds care

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.

Timeline

  • 2023-02-24: The GitHub releases page lists tfsort v0.2.1.
  • 2025-07-14: The GitHub releases page lists tfsort v0.7.1.
  • 2026: The input metadata records tfsort in Homebrew and Nix.

Related projects

  • tfsort is adjacent to Terraform, OpenTofu, Terragrunt, and other HCL formatting or linting tools used before review and CI.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
tfsortcliglobal executable

freshness

Version and 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.

page generated2026-08-04
manager version0.7.1
manager updated2026-07-26
local dataok
upstreamcurrent
latest detectedv0.7.1

https://github.com/AlexNabokikh/tfsort

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:tfsort
Version0.7.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tfsort
Homepagehttps://github.com/AlexNabokikh/tfsort
Repositoryhttps://github.com/AlexNabokikh/tfsort
LicenseApache-2.0
Source archivehttps://github.com/AlexNabokikh/tfsort/archive/refs/tags/v0.7.1.tar.gz
Last updated2026-07-26T00:50:39+02:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametfsort
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

tfsort

nix profile install nixpkgs#tfsort
  • normalized package name match
  • Matched by: Tfsort
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tf/tfsort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation