# 使用 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
- **版本:** 1.12.1
- **来源摘要:** Lookup resource attributes in tfstate
- **主页:** <https://github.com/fujiwara/tfstate-lookup>
- **仓库:** <https://github.com/fujiwara/tfstate-lookup>
- **最后更新:** 2026-07-26T00:50:40+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tfstate-lookup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



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