# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget 安装 terraformer

查看 terraformer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:terraformer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terraformer
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install terraformer
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terraformer
```

  证据: nixpkgs package indexes: pkgs/by-name/te/terraformer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install terraformer
```

  证据: Chocolatey community package catalog: terraformer from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'

- Scoop (92%):

```sh
scoop install main/terraformer
```

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

- winget (92%):

```sh
winget install --id WazeSRE.Terraformer -e
```

  证据: Windows Package Manager source index: WazeSRE.Terraformer from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:terraformer
- **软件包管理器:** Homebrew
- **版本:** 0.8.30
- **来源摘要:** CLI tool to generate terraform files from existing infrastructure
- **主页:** <https://github.com/GoogleCloudPlatform/terraformer>
- **仓库:** <https://github.com/GoogleCloudPlatform/terraformer>
- **最后更新:** 2026-07-26T00:50:36+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terraformer (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.8.30
## 项目历史与用法

Terraformer is a Waze SRE-created CLI, hosted under GoogleCloudPlatform, that generated Terraform configuration and state from existing infrastructure, a workflow often described as reverse Terraform.

### 项目历史

The repository was created in May 2019 and the README identifies the tool as a Waze SRE project, not an official Google product. Its core idea was to inspect already-deployed resources and generate Terraform `.tf`, JSON, and `tfstate` files so teams could bring existing infrastructure under infrastructure-as-code management.

Terraformer grew into a broad multi-provider importer. The README lists major cloud providers such as Google Cloud, AWS, Azure, AliCloud, and IBM Cloud, as well as Kubernetes, GitHub, GitLab, Datadog, PagerDuty, Vault, Okta, Auth0, and many smaller provider targets.

The project is now deprecated. The README states that as of March 16, 2026, the repository was archived, made read-only, and would receive no further updates, security patches, or support.

### 采用历史

Terraformer became one of the better-known tools for bootstrapping Terraform from brownfield environments, especially for teams inheriting manually created cloud resources. Its large GitHub star count, broad provider list, and availability through Homebrew, Chocolatey, MacPorts, Nix, Scoop, and winget show unusually wide package-manager reach for a Terraform-adjacent CLI.

Homebrew analytics show thousands of installs over the previous year, higher than the other Terraform helper tools in this batch. The archived status changes its adoption profile: it remains important historically and for existing workflows, but new users must weigh the lack of maintenance and security support.

### 使用方式

The primary command is `terraformer import [provider]`, with flags for resources, regions, filters, output format, generated path layout, state storage, and optional remote state upload. Users can import all resources, exclude services, filter by IDs or attributes, or create and edit a plan file before importing.

Terraformer uses Terraform providers and was designed so newly supported resources could be picked up by upgrading the relevant Terraform providers. The README also notes Terraform 0.13 support and directs older Terraform 0.11 users to v0.7.9.

### 为什么软件包爱好者会关心

For package nerds, Terraformer is the heavyweight entry in this batch: a large Go CLI with many provider integrations, wide package-manager distribution, and a clear lifecycle story from popular brownfield-import tool to archived dependency that may need replacement or pinning.

### 时间线

- 2019: GitHub repository created and publicized as a Waze SRE reverse-Terraform tool.
- 2022-2025: 0.8.x releases continued through v0.8.30.
- 2026: Repository archived on March 16 and declared deprecated in the README.
- 2026: Homebrew continues to package v0.8.30.

### Related projects

- Terraform providers are the underlying integration layer Terraformer uses to generate configuration for supported services.
- Terraform import and provider-specific import documentation are adjacent workflows for bringing existing resources under Terraform.

### 来源

- <https://api.github.com/repos/GoogleCloudPlatform/terraformer>
- <https://api.github.com/repos/GoogleCloudPlatform/terraformer/releases>
- <https://formulae.brew.sh/api/formula/terraformer.json>
- <https://github.com/GoogleCloudPlatform/terraformer#readme>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 其他软件包管理器记录

- Nix - terraformer: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraformer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - terraformer: normalized package name match | MacPorts ports tree: sysutils/terraformer/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - terraformer: normalized package name match | Chocolatey community package catalog: terraformer from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'
- Scoop - main/terraformer: normalized package name match | Scoop official bucket manifest trees: bucket/terraformer.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - WazeSRE.Terraformer: normalized package name match | Windows Package Manager source index: WazeSRE.Terraformer from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- 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
