# 使用 Homebrew 安装 tfschema

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

## 安装

```sh
sudo av install brew:tfschema
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfschema
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfschema
- **软件包管理器:** Homebrew
- **版本:** 0.7.10
- **来源摘要:** Schema inspector for Terraform/OpenTofu providers
- **主页:** <https://github.com/minamijoyo/tfschema>
- **仓库:** <https://github.com/minamijoyo/tfschema>
- **最后更新:** 2026-07-26T00:50:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tfschema (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

tfschema is a schema inspector for Terraform and OpenTofu providers. It uses provider binaries and the plugin protocol to list resource types, show resource schemas, generate shell autocomplete data, and open provider documentation.

### 项目历史

The project predates OpenTofu support but now documents both Terraform v1.x and OpenTofu v1.6+ support. Its README emphasizes dynamic inspection of installed provider binaries rather than static registry scraping.

The README devotes substantial space to provider-binary discovery. tfschema searches the working directory, vendored plugin directories, modern and legacy `.terraform` plugin layouts, global plugin directories, and GOPATH, reflecting Terraform's changing provider installation layout across versions.

### 采用历史

tfschema has the broadest Homebrew usage in this batch, though still niche in absolute terms. Homebrew formula metadata lists stable version 0.7.10 and higher install counts than the other Terraform helper tools here, matching its usefulness for both module authors and provider investigators.

### 使用方式

A typical workflow installs tfschema, initializes a Terraform project so provider binaries are present, and then runs commands such as `tfschema resource list aws` or `tfschema resource show aws_iam_user`. Users can set `TFSCHEMA_ROOT_DIR` to point discovery at a different Terraform working directory.

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

For package-manager users, tfschema is significant because it exposes provider schemas without requiring a full Terraform plan or hand-reading provider docs. It is especially useful when comparing provider versions, exploring unfamiliar resources, or scripting schema inspection from a locally installed CLI.

### 时间线

- 2024: GitHub tags list v0.7.8 in January and v0.7.9 in August.
- 2026: GitHub tags and Homebrew formula metadata list v0.7.10 in May.
- 2026: Homebrew formula metadata lists stable version 0.7.10 with bottled builds.

### Related projects

- Terraform CLI
- OpenTofu
- Terraform provider plugin protocol
- Terraform Registry provider documentation

### 来源

- <https://formulae.brew.sh/api/formula/tfschema.json>
- <https://github.com/minamijoyo/tfschema#readme>
- <https://github.com/minamijoyo/tfschema/tags>


## 安全说明

narrow executable package without higher-risk signals.

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
