# Installer infracost avec Homebrew, chocolatey, MacPorts, Nix, scoop, winget

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

## installation

```sh
sudo av install brew:infracost
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install infracost
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install infracost
```

  Preuve: MacPorts ports tree: sysutils/infracost/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#infracost
```

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

### Windows

- Chocolatey (92%):

```sh
choco install infracost
```

  Preuve: Chocolatey community package catalog: infracost from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.151999','cports'

- Scoop (92%):

```sh
scoop install main/infracost
```

  Preuve: Scoop official bucket manifest trees: bucket/infracost.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Infracost.Infracost -e
```

  Preuve: Windows Package Manager source index: Infracost.Infracost from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:infracost
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/infracost>
- **Version:** 2.14.2
- **Résumé source:** Cost estimates for Terraform, Terragrunt, and CloudFormation
- **Page d'accueil:** <https://www.infracost.io/docs/>
- **Dépôt:** <https://github.com/infracost/cli>
- **Docs amont:** <https://www.infracost.io/docs/>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/infracost/cli/archive/refs/tags/v2.14.2.tar.gz>
- **Dernière mise à jour:** 2026-08-04T17:49:19Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- infracost (cli)
- infracost (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, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 2.14.2
- gestionnaire mis à jour: 2026-08-04
- données locales: OK
- dépôt amont: https://github.com/infracost/cli
- dernière version détectée: v2.14.2 (à jour)
## Historique du projet et usages

Infracost is a cloud-cost estimation CLI for infrastructure as code, built to show engineers cost impact before infrastructure changes are deployed.

### Historique du projet

Infracost's early public explanation framed the project as a response to cloud-pricing complexity and tools that surfaced cost too late in the delivery process. The August 2020 launch post described a CLI for bringing cost visibility into development and operations workflows, initially around AWS and Terraform.

The project expanded from a standalone open source CLI into a broader FinOps workflow around pull requests, CI/CD, editor integrations, and Infracost Cloud. Its README describes the CLI as the core engine for Terraform, Terragrunt, and CloudFormation cost analysis.

### Historique d'adoption

Infracost adoption followed infrastructure-as-code review habits: developers run it locally, CI systems post cost changes to pull requests, and teams discuss cost before merging. In 2023, Infracost made its GitHub App integration free, emphasizing broad PR coverage and simpler setup across many repositories.

Package-manager availability matters because the tool is usually installed on developer laptops, CI runners, and automation images rather than deployed as a long-lived server.

### Modes d'utilisation

Users run the `infracost` CLI against IaC directories to estimate cost, compare diffs, or scan projects. The tool pairs naturally with Terraform and Terragrunt workflows, where cost feedback in a pull request can change a resource choice before it reaches production.

The CLI has authentication flows and SaaS integrations, but the package itself is best understood as a developer and CI executable. The input data is infrastructure code; the output is a cost breakdown, policy signal, or PR comment.

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

Infracost is significant in package-manager culture because it turns cloud billing into a local lint-like developer concern. Installing it with Homebrew puts a FinOps check beside formatters, linters, Terraform, and cloud CLIs.

It also marks a shift in infrastructure tooling from deployment-only commands to pre-merge economic analysis, a small executable sitting in the path between IaC authors and cloud invoices.

### Chronologie

- 2020: Infracost was introduced publicly as a CLI for cloud cost estimates from infrastructure as code.
- 2020: Initial support focused on AWS and Terraform, with Google Cloud support added later that year.
- 2023: Infracost made its GitHub App integration free and tied the update to CLI v0.10.18.
- 2026: The GitHub release stream for the CLI included 2.x releases, reflecting continued packaging of the standalone executable.

### Related projects

- Related projects and surfaces include Terraform, Terragrunt, CloudFormation, Infracost Cloud, Infracost GitHub App, Infracost GitHub Actions, editor extensions, and cloud-pricing APIs.

### Sources

- <https://github.com/infracost/cli>
- <https://github.com/infracost/cli/releases>
- <https://www.infracost.io/docs>
- <https://www.infracost.io/resources/blog/infracost-cloud-costs-for-devs>
- <https://www.infracost.io/resources/blog/mar-2023-update>


## Notes de sécurité

infrastructure mutation or orchestration signal.

- **Risque Geiger:** orange / moyen
- infrastructure mutation or orchestration signal

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** infracost
- **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 - infracost: normalized package name match | nixpkgs package indexes: pkgs/by-name/in/infracost/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - infracost: normalized package name match | MacPorts ports tree: sysutils/infracost/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - infracost: normalized package name match | Chocolatey community package catalog: infracost from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.151999','cports'
- Scoop - main/infracost: normalized package name match | Scoop official bucket manifest trees: bucket/infracost.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Infracost.Infracost: normalized package name match | Windows Package Manager source index: Infracost.Infracost from https://cdn.winget.microsoft.com/cache/source.msix


## Liens liés

- [Cloud CLI packages](https://pkg.so/fr/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [cf2tf](https://pkg.so/fr/brew/cf2tf/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation, terraform.
- [cfn-lint](https://pkg.so/fr/brew/cfn-lint/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [aws-cdk](https://pkg.so/fr/brew/aws-cdk/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [eksctl](https://pkg.so/fr/brew/eksctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [rain](https://pkg.so/fr/brew/rain/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [aws-sso-util](https://pkg.so/fr/brew/aws-sso-util/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [terraformer](https://pkg.so/fr/brew/terraformer/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, terraform.
- [aws-amplify](https://pkg.so/fr/brew/aws-amplify/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cloudformation.
- [cfnctl](https://pkg.so/fr/brew/cfnctl/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, cloudformation, infrastructure.
- [atlantis](https://pkg.so/fr/brew/atlantis/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/infracost.yml](https://github.com/mxcl/pkgdb/blob/main/combined/infracost.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
