# Installer tfsort avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de tfsort pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install tfsort
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:tfsort
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.7.1
- **Résumé source:** CLI to sort Terraform variables and outputs
- **Page d'accueil:** <https://github.com/AlexNabokikh/tfsort>
- **Dépôt:** <https://github.com/AlexNabokikh/tfsort>
- **Dernière mise à jour:** 2026-07-26T00:50:39+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- tfsort (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.7.1
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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

### Modes d'utilisation

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

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- 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


## Combined YAML source

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


## Sources

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