# 使用 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
- **版本:** 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>
- **最后更新:** 2026-07-26T00:50:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tfplugingen-openapi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
