# 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
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/tfsort>
- **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>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/AlexNabokikh/tfsort/archive/refs/tags/v0.7.1.tar.gz>
- **Dernière mise à jour:** 2026-07-26T00:50:39+02:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- tfsort (cli)
- tfsort (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 0.7.1
- gestionnaire mis à jour: 2026-07-26
- données locales: OK
- dépôt amont: https://github.com/AlexNabokikh/tfsort
- dernière version détectée: v0.7.1 (à jour)
## 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

## Détails de la base source

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

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


## Liens liés

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


## Sources

- 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
