# 使用 Homebrew 安装 terrahash

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

## 安装

```sh
sudo av install brew:terrahash
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terrahash
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terrahash
- **软件包管理器:** Homebrew
- **版本:** 0.1.0
- **来源摘要:** Create and store a hash of the Terraform modules used by your configuration
- **主页:** <https://github.com/ned1313/terrahash>
- **仓库:** <https://github.com/ned1313/terrahash>
- **最后更新:** 2026-07-26T00:50:36+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terrahash (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

TerraHash is a small Terraform module-locking CLI that creates and checks hashes for modules used by a Terraform configuration.

### 项目历史

The public GitHub repository was created in June 2024. Its README explicitly labels the project as early-stage software, while documenting the core behavior: evaluate initialized Terraform configuration, generate hashes for modules, and store them in a .terraform.module.lock.hcl file analogous to Terraform's provider lock file.

The tool's narrow purpose is supply-chain control for Terraform modules. It checks the lock file against current module hashes and version constraints, then reports changed hashes, changed versions, or missing modules.

### 采用历史

Adoption appears niche and security-focused rather than broad. Repository metadata showed a small but visible public audience by July 2026, and Homebrew metadata lists a brew formula for the CLI.

### 使用方式

The README describes three central commands: terrahash init to create a module lock file, terrahash check to validate current modules against it, and terrahash upgrade to update the lock file after approved changes.

The project is meant to run in CI so deployments can fail when Terraform module code or version constraints diverge from the approved lock file.

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

For package nerds, TerraHash is interesting because it fills a small gap in Terraform's lock-file story: Terraform has a provider lock file, while this tool experiments with a separate module lock file that can be installed as a simple CLI.

### 时间线

- 2024: Public GitHub repository created.
- 2024: README documents init, check, and upgrade workflows around .terraform.module.lock.hcl.
- 2026: Homebrew metadata lists terrahash as a packaged CLI.

### Related projects

- Terraform supplies the module system and provider lock-file pattern that TerraHash mirrors.
- Terragrunt and Terramate are adjacent Terraform workflow tools, but TerraHash is focused specifically on module hash verification.

### 来源

- Input package metadata: source_facts.package-manager, source_facts.package-manager-url
- README: https://github.com/ned1313/terrahash#readme
- Repository metadata: https://api.github.com/repos/ned1313/terrahash


## 安全说明

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/terrahash.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terrahash.yml)


## 来源

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