# 使用 Homebrew 安装 tfocus

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

## 安装

```sh
sudo av install brew:tfocus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfocus
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfocus
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tfocus>
- **版本:** 0.1.5
- **来源摘要:** Tool for selecting and executing terraform plan/apply on specific resources
- **主页:** <https://github.com/nwiizo/tfocus>
- **仓库:** <https://github.com/nwiizo/tfocus>
- **许可证:** MIT
- **源码归档:** <https://github.com/nwiizo/tfocus/archive/refs/tags/v0.1.5.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tfocus (cli)
- tfocus (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.5
- 本地数据: OK
- 上游仓库: https://github.com/nwiizo/tfocus
- 检测到的最新版本: v0.1.5 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

tfocus is a Rust CLI and terminal UI for interactively selecting Terraform resources and running targeted plan/apply workflows. Its README repeatedly warns that resource targeting should be an emergency or debugging technique, not a normal Terraform operating model.

### 项目历史

The project presents itself as a focused helper for large Terraform codebases where full plans can be slow or where a user needs to inspect specific resources. Its Cargo metadata names the project, repository, documentation, and command-line utility category around Terraform and OpenTofu workflows.

### 采用历史

tfocus has niche adoption. GitHub tags show early 0.1.x releases in late 2024 and January 2025, while Homebrew metadata lists stable version 0.1.5 with small install counts.

### 使用方式

Users run tfocus inside a Terraform project. The README describes a fuzzy-search interface, vim-like keybindings, recursive file scanning, and a selection flow that executes Terraform plan/apply for chosen resources.

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

For package-nerd audiences, tfocus is notable as a packaged Rust TUI around Terraform's controversial targeting feature. It is useful as a discoverable Homebrew/crates.io-style utility, but its own documentation makes clear that the workflow is intentionally exceptional.

### 时间线

- 2024: GitHub tags list v0.1.1, v0.1.2, and v0.1.3 in December.
- 2025: GitHub tags list v0.1.5 in January; Cargo.toml lists version 0.1.5.
- 2026: Homebrew formula metadata lists stable version 0.1.5 with bottled builds.

### Related projects

- Terraform CLI
- OpenTofu
- crossterm
- fuzzy-matcher

### 来源

- <https://formulae.brew.sh/api/formula/tfocus.json>
- <https://github.com/nwiizo/tfocus#readme>
- <https://github.com/nwiizo/tfocus/blob/main/Cargo.toml>
- <https://github.com/nwiizo/tfocus/tags>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfocus
- **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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [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.
- [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.
- [tfupdate](https://pkg.so/zh-hans/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [iam-policy-json-to-terraform](https://pkg.so/zh-hans/brew/iam-policy-json-to-terraform/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfschema](https://pkg.so/zh-hans/brew/tfschema/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfstate-lookup](https://pkg.so/zh-hans/brew/tfstate-lookup/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfmv](https://pkg.so/zh-hans/brew/tfmv/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, infrastructure.

## Combined YAML source

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


## 来源

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