# 使用 Homebrew 安装 tgenv

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

## 安装

```sh
sudo av install brew:tgenv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tgenv
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tgenv
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** Terragrunt version manager inspired by tfenv
- **主页:** <https://github.com/tgenv/tgenv>
- **仓库:** <https://github.com/tgenv/tgenv>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tgenv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

TGEnv is a Terragrunt version manager inspired by tfenv. Its README describes installing, switching, and managing multiple Terragrunt versions from one shell environment.

### 项目历史

The current project documents itself as a fork of cunymatthieu/tgenv. Its installation docs describe a shell-based tool distributed as a Git repository, exposed through `~/.tgenv/bin`, with Homebrew support on macOS and Linux.

The documentation centers on reproducible per-project Terragrunt selection through `.terragrunt-version`, mirroring the version-file workflow familiar from tfenv and other language/runtime managers.

### 采用历史

The README points to dedicated documentation for installation, usage, the `.terragrunt-version` file, environment variables, architecture, and contribution. The input metadata records Homebrew packaging.

### 使用方式

The normal workflow is to install TGEnv, then run commands such as `tgenv install latest` and `tgenv use latest`. The docs say `.terragrunt-version` can pin a project to a literal version, `latest`, or a regex-based latest constraint.

When a `.terragrunt-version` file is present, TGEnv resolves it by walking up from the current directory, then falling back to the user's home directory and the global `~/.tgenv/version` file. The docs recommend committing `.terragrunt-version` so new contributors install the correct Terragrunt version automatically.

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

tgenv is part of the version-manager family around infrastructure CLIs. For package-manager users, it keeps the Homebrew-installed manager stable while project repositories declare the Terragrunt version they need.

### 时间线

- 2024-01-05: The GitHub releases page lists tgenv v1.1.0.
- 2025-11-18: The GitHub releases page lists tgenv v1.3.0.
- 2026: The input metadata records tgenv as a Homebrew package.

### Related projects

- TGEnv is explicitly inspired by tfenv and manages releases of Terragrunt.

### 来源

- <https://github.com/tgenv/tgenv README>
- <https://github.com/tgenv/tgenv/blob/main/docs/installation.md>
- <https://github.com/tgenv/tgenv/blob/main/docs/terragrunt-version-file.md>
- <https://github.com/tgenv/tgenv/releases>
- source_facts.package-manager


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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-version

## Combined YAML source

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


## 来源

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