# Install infracost

Cost estimates for Terraform, Terragrunt, and CloudFormation. Version 2.2.9 via Homebrew; verified 2026-06-09.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install infracost
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install infracost
```

  Evidence: 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
```

  Evidence: 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
```

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

- winget (92%):

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

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

## Package Facts

- **Package key:** brew:infracost
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/infracost>
- **Version:** 2.2.9
- **Source summary:** Cost estimates for Terraform, Terragrunt, and CloudFormation
- **Homepage:** <https://www.infracost.io/docs/>
- **Repository:** <https://github.com/infracost/cli>
- **Upstream docs:** <https://www.infracost.io/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/infracost/cli/archive/refs/tags/v2.2.9.tar.gz>
- **Last updated:** 2026-06-09T18:18:48Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- infracost (cli)
- infracost (alias)

## Build Dependencies

- go

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.2.9
- Package-manager updated: 2026-06-09
- Local data status: ok
- Upstream repository: https://github.com/infracost/cli
- Upstream latest detected: v2.2.9 (current)

## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal

## Source Database Details

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

## Other Package-Manager Records

- 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='8.370399','drmemory.install'
- winget - Infracost.Infracost: normalized package name match | Windows Package Manager source index: Infracost.Infracost from https://cdn.winget.microsoft.com/cache/source.msix


## Related Links

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [cf2tf](https://www.automicvault.com/zh-hans/pkg/brew/cf2tf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, cloudformation, terraform.
- [eksctl](https://www.automicvault.com/zh-hans/pkg/brew/eksctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, cloudformation.
- [rain](https://www.automicvault.com/zh-hans/pkg/brew/rain/) - Shares av.db curated category or tags: cli, cloud-infrastructure, cloudformation.
- [terraformer](https://www.automicvault.com/zh-hans/pkg/brew/terraformer/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [terraform-local](https://www.automicvault.com/zh-hans/pkg/brew/terraform-local/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [cdktf](https://www.automicvault.com/zh-hans/pkg/brew/cdktf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [aztfexport](https://www.automicvault.com/zh-hans/pkg/brew/aztfexport/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [inframap](https://www.automicvault.com/zh-hans/pkg/brew/inframap/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [cfnctl](https://www.automicvault.com/zh-hans/pkg/brew/cfnctl/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, cloudformation, infrastructure.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
