macOS
brew install tfenvlocal Homebrew formula metadata
sudo port install tfenvMacPorts ports tree · sysutils/tfenv/Portfile · source: api.github.com
brew
Terraform version manager inspired by rbenv. Version 3.2.2 via Homebrew; verified 2026-04-28.
install
brew install tfenvlocal Homebrew formula metadata
sudo port install tfenvMacPorts ports tree · sysutils/tfenv/Portfile · source: api.github.com
nix profile install nixpkgs#tfenvnixpkgs package indexes · pkgs/by-name/tf/tfenv/package.nix · source: api.github.com
sudo pacman -S terraformArch Linux sync databases · terraform · source: geo.mirror.pkgbuild.com
choco install terraformChocolatey community package catalog · terraform · source: community.chocolatey.org
scoop install main/terraformScoop official bucket manifest trees · bucket/terraform.json · source: api.github.com
winget install --id Hashicorp.Terraform -eWindows Package Manager source index · Hashicorp.Terraform · source: cdn.winget.microsoft.com
overview
Terraform version manager inspired by rbenv
history
tfenv is a Terraform version manager modeled after `rbenv`. It installs Terraform versions, switches the active version, and lets projects pin versions with `.terraform-version` files.
The README presents tfenv as a Terraform version manager inspired by rbenv, with a shell-script installation model: clone the repository into `~/.tfenv`, add its `bin` directory to PATH, or install it through Homebrew or other package managers.
Its history follows Terraform's own growth as teams moved from one global Terraform binary to many project-specific versions. tfenv added project version files, automatic installation, `latest` and regex-like selectors, minimum-required and latest-allowed resolution, checksum/signature verification paths, custom remotes, and private mirror support.
The release history shows long maintenance rather than a one-off wrapper. The v2.2.0 notes in 2021 included CI migration to GitHub Actions and macOS/Homebrew grep handling. v3.0.0 in 2022 was described as a major update with bashlog refactoring, Mac fixes, auto-install/use fixes, and netrc/private mirror support. v3.1.0 in 2026 was the first release since v3.0.0 and added more constraint handling, locks, custom remote compatibility, and broader tests.
tfenv is one of the more visible Terraform helper tools in package-manager culture: the repository shows thousands of GitHub stars, Homebrew packages it directly, and the input metadata also records MacPorts and Nix packages. Its name and workflow match the pattern used by language/runtime version managers such as rbenv and pyenv.
Adoption is driven by team reproducibility. A repository can include `.terraform-version`, and developers or CI jobs that use tfenv get the intended Terraform version instead of relying on a manually managed global binary.
Common commands include `tfenv install`, `tfenv use`, `tfenv uninstall`, `tfenv list`, and `tfenv list-remote`. If no explicit version is passed, `tfenv install` and `tfenv use` resolve from `TFENV_TERRAFORM_VERSION`, `.terraform-version`, or defaults such as `latest`.
The `TFENV_NETRC_PATH` setting supports credentials for custom remotes, and `TFENV_REMOTE` lets users install Terraform from mirrors such as internal artifact repositories rather than HashiCorp's default release host.
tfenv matters because it makes Terraform behave like a language runtime in a polyversion codebase. Package managers install tfenv once; tfenv then mediates the actual Terraform binaries needed by individual repositories.
For infrastructure engineers, this avoids a class of subtle plan/apply drift caused by the wrong Terraform CLI version. For package catalogs, it is a canonical example of a version-manager formula rather than a Terraform distribution itself.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
.terraform-version~/.terraform-versionCredential-bearing paths to review before unattended agent runs.
$TFENV_NETRC_PATHexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
terraform | cli | global executable | |
tfenv | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/tfutils/tfenv
install metadata
| Package key | brew:tfenv |
|---|---|
| Version | 3.2.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tfenv |
| Homepage | https://github.com/tfutils/tfenv |
| Repository | https://github.com/tfutils/tfenv |
| Upstream docs | https://github.com/tfutils/tfenv |
| License | MIT |
| Source archive | https://github.com/tfutils/tfenv/archive/refs/tags/v3.2.2.tar.gz |
| Last updated | 2026-04-28T22:04:46Z |
| Pulse | updated |
| Dependencies | grep |
| Uses from macOS | unzip |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tfenv |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tfenv
nix profile install nixpkgs#tfenvtfenv
sudo port install tfenvterraform
sudo port install terraformterraform
nix profile install nixpkgs#terraformterraform 1.15.6-1
HashiCorp tool for building and updating infrastructure as code idempotently
https://github.com/hashicorp/terraform
sudo pacman -S terraformterraform
choco install terraformmain/terraform
scoop install main/terraformHashicorp.Terraform
winget install --id Hashicorp.Terraform -eHashicorp.Terraform.Alpha
winget install --id Hashicorp.Terraform.Alpha -eHashicorp.Terraform.Beta
winget install --id Hashicorp.Terraform.Beta -eHashicorp.Terraform.RC
winget install --id Hashicorp.Terraform.RC -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.