pkg.soopen package index

brew / rank 7598

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 bottle metadata was recorded.

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
tfsortexecutableindexed executableDiscovered from the local executable index.

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-03
manager version0.7.1
manager updated2026-07-26
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:tfsort
Version0.7.1
Package managerHomebrew
Homepagehttps://github.com/AlexNabokikh/tfsort
Repositoryhttps://github.com/AlexNabokikh/tfsort
Last updated2026-07-26T00:50:39+02:00
Pulseupdated
Bottlenot recorded
Servicenone declared

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
  • pkg.so package database
  • pkgdb category and tag curation