# Install terrahash with Homebrew

Create and store a hash of the Terraform modules used by your configuration. Version 0.1.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install terrahash
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:terrahash
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/terrahash>
- **Version:** 0.1.0
- **Source summary:** Create and store a hash of the Terraform modules used by your configuration
- **Homepage:** <https://github.com/ned1313/terrahash>
- **Repository:** <https://github.com/ned1313/terrahash>
- **Upstream docs:** <https://github.com/ned1313/terrahash#readme>
- **License:** MIT
- **Source archive:** <https://github.com/ned1313/terrahash/archive/refs/tags/v0.1.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- terrahash (cli)
- terrahash (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.0
- Local data: ok
- Upstream repository: https://github.com/ned1313/terrahash
- Upstream latest detected: v0.1.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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

### Project history

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 history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- 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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terrahash
- **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


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [terragrunt](https://www.automicvault.com/pkg/brew/terragrunt/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terrahelp](https://www.automicvault.com/pkg/brew/terrahelp/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terramate](https://www.automicvault.com/pkg/brew/terramate/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terratag](https://www.automicvault.com/pkg/brew/terratag/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [iam-policy-json-to-terraform](https://www.automicvault.com/pkg/brew/iam-policy-json-to-terraform/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [k2tf](https://www.automicvault.com/pkg/brew/k2tf/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-inventory](https://www.automicvault.com/pkg/brew/terraform-inventory/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-module-versions](https://www.automicvault.com/pkg/brew/terraform-module-versions/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfupdate](https://www.automicvault.com/pkg/brew/tfupdate/) - 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/terrahash.yml](https://github.com/automic-vault/db/blob/main/combined/terrahash.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
