# Install tgenv with Homebrew

Terragrunt version manager inspired by tfenv. Version 1.3.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tgenv
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:tgenv
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tgenv>
- **Version:** 1.3.0
- **Source summary:** Terragrunt version manager inspired by tfenv
- **Homepage:** <https://github.com/tgenv/tgenv>
- **Repository:** <https://github.com/tgenv/tgenv>
- **Upstream docs:** <https://github.com/tgenv/tgenv#readme>
- **License:** MIT
- **Source archive:** <https://github.com/tgenv/tgenv/archive/refs/tags/v1.3.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- tgenv (cli)
- tgenv (alias)

## Uses from macOS

- unzip

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

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

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

### Project history

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.

### Adoption history

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

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tgenv
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** tenv, terragrunt
- **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.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [tenv](https://www.automicvault.com/pkg/brew/tenv/) - Shares av.db curated category or tags: cli, developer-tools, terragrunt, version-management, version-manager.
- [tfenv](https://www.automicvault.com/pkg/brew/tfenv/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, version-management, version-manager.
- [fnm](https://www.automicvault.com/pkg/brew/fnm/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [proto](https://www.automicvault.com/pkg/brew/proto/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [rbenv](https://www.automicvault.com/pkg/brew/rbenv/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [swiftly](https://www.automicvault.com/pkg/brew/swiftly/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [uru](https://www.automicvault.com/pkg/brew/uru/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [vfox](https://www.automicvault.com/pkg/brew/vfox/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.

## Combined YAML source

View the package source record on GitHub. [combined/tgenv.yml](https://github.com/automic-vault/db/blob/main/combined/tgenv.yml)


## Sources

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