# 使用 Homebrew 安装 tfstate-lookup

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

## 安装

```sh
sudo av install brew:tfstate-lookup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfstate-lookup
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfstate-lookup
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tfstate-lookup>
- **版本:** 1.12.1
- **来源摘要:** Lookup resource attributes in tfstate
- **主页:** <https://github.com/fujiwara/tfstate-lookup>
- **仓库:** <https://github.com/fujiwara/tfstate-lookup>
- **许可证:** MPL-2.0
- **源码归档:** <https://github.com/fujiwara/tfstate-lookup/archive/refs/tags/v1.12.1.tar.gz>
- **最后更新:** 2026-07-26T00:50:40+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tfstate-lookup (cli)
- tfstate-lookup (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.12.1
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/fujiwara/tfstate-lookup
- 检测到的最新版本: v1.12.1 (当前)
## 项目历史与用法

tfstate-lookup is a command-line and Go-library tool for querying Terraform state. Its README describes looking up resource attributes from local or remote tfstate files.

### 项目历史

The project centers on state inspection rather than configuration editing. The README documents lookup by resource address, dumping all resources, interactive selection, and integration with the `jid` JSON incremental digger.

### 采用历史

The README documents installation through a Homebrew tap and binary releases. The input metadata records a Homebrew package for the tool.

### 使用方式

Typical use is to query a state file with commands like `tfstate-lookup aws_vpc.main.id` or to point `-s` at a local file or URL. The README lists supported state URL schemes including local file, HTTP(S), S3, GCS, AzureRM, and Terraform Cloud or Enterprise remote state.

For package users, the value is a quick shell-native way to inspect state outputs and resource attributes without writing jq filters against the whole state JSON.

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

tfstate-lookup belongs to the practical Terraform toolbox: small enough for Homebrew, useful in scripts, and focused on the awkward gap between Terraform state internals and day-to-day shell queries.

### 时间线

- 2025-04-19: The GitHub releases page lists tfstate-lookup v1.6.0.
- 2026-05-17: The GitHub releases page lists tfstate-lookup v1.12.1.
- 2026: The input metadata records tfstate-lookup as a Homebrew package.

### Related projects

- The README links jid for interactive JSON digging and documents Terraform Cloud, S3, GCS, and AzureRM state backends.

### 来源

- <https://github.com/fujiwara/tfstate-lookup README>
- <https://github.com/fujiwara/tfstate-lookup/releases>
- source_facts.package-manager


## 安全说明

没有找到 tfstate-lookup 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfstate-lookup
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** 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.
- [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.
- [tfsort](https://pkg.so/zh-hans/brew/tfsort/) - 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.
- [tfocus](https://pkg.so/zh-hans/brew/tfocus/) - 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/tfstate-lookup.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tfstate-lookup.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
