# tfsort mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für tfsort in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:tfsort
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install tfsort
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tfsort
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/tf/tfsort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:tfsort
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/tfsort>
- **Version:** 0.7.1
- **Quellzusammenfassung:** CLI to sort Terraform variables and outputs
- **Homepage:** <https://github.com/AlexNabokikh/tfsort>
- **Repository:** <https://github.com/AlexNabokikh/tfsort>
- **Lizenz:** Apache-2.0
- **Quellarchiv:** <https://github.com/AlexNabokikh/tfsort/archive/refs/tags/v0.7.1.tar.gz>
- **Zuletzt aktualisiert:** 2026-07-26T00:50:39+02:00
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- tfsort (cli)
- tfsort (Alias)

## Build-Abhängigkeiten

- go

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 0.7.1
- Manager aktualisiert: 2026-07-26
- lokale Daten: OK
- Upstream-Repository: https://github.com/AlexNabokikh/tfsort
- neueste erkannte Version: v0.7.1 (aktuell)
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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

### Wie es verwendet wird

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

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

- <https://github.com/AlexNabokikh/tfsort README>
- <https://github.com/AlexNabokikh/tfsort/releases>
- source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfsort
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Andere Paketmanager-Einträge

- Nix - tfsort: normalized package name match | nixpkgs package indexes: pkgs/by-name/tf/tfsort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Verwandte Links

- [Cloud CLI packages](https://pkg.so/de/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/de/brew/go/) - Build dependency declared by Homebrew.
- [tfenv](https://pkg.so/de/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-docs](https://pkg.so/de/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfmigrate](https://pkg.so/de/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-summarize](https://pkg.so/de/brew/tf-summarize/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfupdate](https://pkg.so/de/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [iam-policy-json-to-terraform](https://pkg.so/de/brew/iam-policy-json-to-terraform/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [cargo-sort](https://pkg.so/de/brew/cargo-sort/) - Shares pkgdb curated category or tags: cli, developer-tools, formatting, sorting.
- [tfschema](https://pkg.so/de/brew/tfschema/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-profile](https://pkg.so/de/brew/tf-profile/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, infrastructure.
- [tfautomv](https://pkg.so/de/brew/tfautomv/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/tfsort.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tfsort.yml)


## Quellen

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