# 使用 Homebrew, chocolatey, MacPorts, Nix, pacman, zypper, scoop, winget 安装 terragrunt

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

## 安装

```sh
sudo av install brew:terragrunt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terragrunt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install terragrunt
```

  证据: MacPorts ports tree: sysutils/terragrunt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terragrunt
```

  证据: nixpkgs package indexes: pkgs/by-name/te/terragrunt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S terragrunt
```

  证据: Arch Linux sync databases: terragrunt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install terragrunt
```

  证据: openSUSE Tumbleweed package metadata: terragrunt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install terragrunt
```

  证据: Chocolatey community package catalog: terragrunt from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','termius'

- Scoop (92%):

```sh
scoop install main/terragrunt
```

  证据: Scoop official bucket manifest trees: bucket/terragrunt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Gruntwork.Terragrunt -e
```

  证据: Windows Package Manager source index: Gruntwork.Terragrunt from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:terragrunt
- **软件包管理器:** Homebrew
- **版本:** 1.1.2
- **来源摘要:** Thin wrapper for Terraform e.g. for locking state
- **主页:** <https://terragrunt.gruntwork.io/>
- **仓库:** <https://github.com/gruntwork-io/terragrunt>
- **最后更新:** 2026-07-29T23:26:08Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terragrunt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Terragrunt is Gruntwork's long-running orchestration layer for scaling Terraform and OpenTofu infrastructure-as-code projects.

### 项目历史

Terragrunt's public GitHub repository was created in May 2016. The project began as a thin wrapper around Terraform, but its current README describes it more broadly as a flexible orchestration tool that lets OpenTofu and Terraform infrastructure scale.

The official documentation and README place Terragrunt around the terragrunt.hcl configuration file, where users define reusable inputs, dependencies, includes, and execution behavior around otherwise native Terraform or OpenTofu code. Over time, that made the CLI a common companion for teams splitting infrastructure into many small units rather than one large state and root module.

Gruntwork's Road to Terragrunt 1.0 posts describe the project as having remained pre-1.0 for nearly eight years, then moving toward a stable command-line interface and file format. The same series introduced or stabilized larger-scale features such as Stacks, feature flags, run reports, a runner pool, and a redesigned documentation site before the 1.0 milestone.

### 采用历史

Terragrunt became a package-manager staple because it sits directly in day-to-day Terraform workflows: developers install the CLI, keep terragrunt.hcl files beside infrastructure code, and call Terragrunt from local shells and CI pipelines. The input metadata shows packages across Homebrew, Chocolatey, MacPorts, Nix, Arch, Scoop, winget, and zypper.

Official repository metadata showed thousands of stars and more than a thousand forks by July 2026. Gruntwork's 1.0 release writing also frames the release as tested with real-world platform teams and intended to stabilize behavior for the existing community.

### 使用方式

Common usage is to run Terraform or OpenTofu operations through terragrunt so shared configuration, dependency ordering, remote-state conventions, and multi-unit execution are handled consistently.

In package-nerd workflows, Terragrunt is often pinned or installed alongside Terraform or OpenTofu through system package managers, dev shells, CI images, and version managers because it participates in both local commands and automated infrastructure deployment.

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

Terragrunt is one of the more significant Terraform-adjacent packages in Homebrew because it is not just a helper script: it is a cross-platform Go CLI with its own configuration language conventions, release stream, compatibility expectations, and surrounding ecosystem of docs and package-manager formulas.

Its 1.0 work is especially relevant to package maintainers because the official goal was to stabilize the CLI and file format, reducing churn for users who install Terragrunt from operating-system package repositories.

### 时间线

- 2016: Public Terragrunt repository created under gruntwork-io.
- 2024: Gruntwork announced the Road to Terragrunt 1.0 and described a plan to stabilize CLI and file-format behavior.
- 2025: Terragrunt Stacks reached general availability in the v0.78.0 period according to Gruntwork's official Stacks update.
- 2026: Terragrunt 1.0 shipped after release-candidate testing and community feedback.

### Related projects

- Terraform and OpenTofu are the IaC engines Terragrunt orchestrates.
- Gruntwork's broader infrastructure tooling and commercial support ecosystem surround the project.
- Terramate and terragrunt-atlantis-config occupy nearby Terraform orchestration and automation niches.

### 来源

- Docs: https://terragrunt.gruntwork.io/docs
- Input package metadata: source_facts.package-manager
- README: https://github.com/gruntwork-io/terragrunt#readme
- Repository metadata: https://api.github.com/repos/gruntwork-io/terragrunt
- Road to 1.0: https://www.gruntwork.io/blog/the-road-to-terragrunt-1-0
- Stacks update: https://www.gruntwork.io/blog/the-road-to-1-0-terragrunt-stacks-feature-complete
- Terragrunt 1.0 release: https://www.gruntwork.io/blog/terragrunt-1-0-released


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: terragrunt.hcl
## 其他软件包管理器记录

- Nix - terragrunt: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terragrunt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - terragrunt - 1.1.1-1: normalized package name match | Arch Linux sync databases: terragrunt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Thin wrapper for Terraform and OpenTofu for working with multiple modules | https://github.com/gruntwork-io/terragrunt
- zypper - terragrunt - 1.1.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: terragrunt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Thin wrapper for Terraform for working with multiple Terraform modules | https://github.com/gruntwork-io/terragrunt
- zypper - terragrunt-bash-completion - 1.1.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: terragrunt-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for terragrunt | https://github.com/gruntwork-io/terragrunt
- zypper - terragrunt-zsh-completion - 1.1.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: terragrunt-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for terragrunt | https://github.com/gruntwork-io/terragrunt
- MacPorts - terragrunt: normalized package name match | MacPorts ports tree: sysutils/terragrunt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - terragrunt: normalized package name match | Chocolatey community package catalog: terragrunt from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','termius'
- Scoop - main/terragrunt: normalized package name match | Scoop official bucket manifest trees: bucket/terragrunt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Gruntwork.Terragrunt: normalized package name match | Windows Package Manager source index: Gruntwork.Terragrunt from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
