macOS
brew install tfenvlocal Homebrew formula metadata
sudo port install tfenvMacPorts ports tree · sysutils/tfenv/Portfile · ソース: api.github.com
brew
tfenv のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install tfenvlocal Homebrew formula metadata
sudo port install tfenvMacPorts ports tree · sysutils/tfenv/Portfile · ソース: api.github.com
nix profile install nixpkgs#tfenvnixpkgs package indexes · pkgs/by-name/tf/tfenv/package.nix · ソース: api.github.com
sudo pacman -S terraformArch Linux sync databases · terraform · ソース: geo.mirror.pkgbuild.com
choco install terraformChocolatey community package catalog · terraform · ソース: community.chocolatey.org
scoop install main/terraformScoop official bucket manifest trees · bucket/terraform.json · ソース: api.github.com
winget install --id Hashicorp.Terraform -eWindows Package Manager source index · Hashicorp.Terraform · ソース: cdn.winget.microsoft.com
概要
Terraform version manager inspired by rbenv
履歴
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.
セキュリティ状態
infrastructure mutation or orchestration signal.
リスク orange · 信頼度 中 · infrastructure
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
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_PATH実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
terraform | cli | グローバル実行可能ファイル | |
tfenv | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/tfutils/tfenv
インストールメタデータ
| パッケージキー | brew:tfenv |
|---|---|
| バージョン | 3.2.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/tfenv |
| ホームページ | https://github.com/tfutils/tfenv |
| リポジトリ | https://github.com/tfutils/tfenv |
| 上流ドキュメント | https://github.com/tfutils/tfenv |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/tfutils/tfenv/archive/refs/tags/v3.2.2.tar.gz |
| 最終更新 | 2026-04-28T22:04:46Z |
| Pulse | updated |
| 依存関係 | grep |
| macOS 提供ライブラリ | unzip |
| Bottle | 利用可能 (対象 all) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
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 -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.