# 使用 Homebrew 安装 tfplugingen-openapi

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

## 安装

```sh
sudo av install brew:tfplugingen-openapi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfplugingen-openapi
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfplugingen-openapi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tfplugingen-openapi>
- **版本:** 0.3.0
- **来源摘要:** OpenAPI to Terraform Provider Code Generation Specification
- **主页:** <https://github.com/hashicorp/terraform-plugin-codegen-openapi>
- **仓库:** <https://github.com/hashicorp/terraform-plugin-codegen-openapi>
- **许可证:** MPL-2.0
- **源码归档:** <https://github.com/hashicorp/terraform-plugin-codegen-openapi/archive/refs/tags/v0.3.0.tar.gz>
- **最后更新:** 2026-07-26T00:50:39+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tfplugingen-openapi (cli)
- tfplugingen-openapi (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/hashicorp/terraform-plugin-codegen-openapi
- 检测到的最新版本: v0.3.0 (当前)
## 项目历史与用法

tfplugingen-openapi is HashiCorp's OpenAPI Provider Spec Generator, a CLI that transforms OpenAPI 3.x specifications into Terraform Provider Code Specification files. It belongs to Terraform's provider code-generation toolchain rather than to ordinary Terraform runtime usage.

### 项目历史

The project was published under the HashiCorp organization as terraform-plugin-codegen-openapi. Its README describes the generator as part of Terraform Provider Code Generation and points to the HashiCorp Developer documentation for full usage, examples, and generator configuration.

HashiCorp documents the generator as a tech-preview code-generation component. The official design document explains how OpenAPI operations, schemas, request bodies, responses, and parameters map into Terraform provider resources, data sources, and schema attributes.

### 采用历史

Adoption is concentrated among Terraform provider authors experimenting with code generation from existing API descriptions. GitHub tags show 0.1.0 through 0.3.0 releases from October 2023 to January 2024, and Homebrew later packaged the tfplugingen-openapi binary for local installation.

### 使用方式

The primary command is `tfplugingen-openapi generate`, usually run with a generator_config.yml file, an output path for provider_code_spec.json, and an OpenAPI specification file. The generated provider code specification can then feed the Terraform Plugin Framework code generator.

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

For package-manager and Terraform-provider specialists, tfplugingen-openapi is significant because it turns API descriptions into provider scaffolding inputs. It packages a slice of HashiCorp's provider-authoring workflow as a standalone Homebrew-installable CLI.

### 时间线

- 2023: GitHub tags list v0.1.0 in October.
- 2024: GitHub tags list v0.3.0 in January.
- 2025: HashiCorp Developer page metadata lists the OpenAPI generator documentation publication/modification date as May 27.
- 2026: Homebrew formula metadata lists stable version 0.3.0 with bottled builds.

### Related projects

- Terraform Plugin Framework
- Terraform Provider Code Specification
- Terraform Plugin Framework Code Generator
- OpenAPI 3.x

### 来源

- <https://developer.hashicorp.com/terraform/plugin/code-generation/openapi-generator>
- <https://formulae.brew.sh/api/formula/tfplugingen-openapi.json>
- <https://github.com/hashicorp/terraform-plugin-codegen-openapi#readme>
- <https://github.com/hashicorp/terraform-plugin-codegen-openapi/blob/main/DESIGN.md>
- <https://github.com/hashicorp/terraform-plugin-codegen-openapi/tags>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./generator_config.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfplugingen-openapi
- **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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [tfproviderlint](https://pkg.so/zh-hans/brew/tfproviderlint/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, provider-development, terraform.
- [tfenv](https://pkg.so/zh-hans/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-docs](https://pkg.so/zh-hans/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [openapi-generator](https://pkg.so/zh-hans/brew/openapi-generator/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, openapi.
- [swagger-codegen](https://pkg.so/zh-hans/brew/swagger-codegen/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, openapi.
- [tfmigrate](https://pkg.so/zh-hans/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tf-summarize](https://pkg.so/zh-hans/brew/tf-summarize/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terramate](https://pkg.so/zh-hans/brew/terramate/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, terraform.
- [autorest](https://pkg.so/zh-hans/brew/autorest/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.
- [create-api](https://pkg.so/zh-hans/brew/create-api/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
