Automic VaultAutomic Vault

brew

tfenv を Homebrew, MacPorts, Nix, chocolatey, pacman, scoop, winget でインストール

tfenv のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install tfenv

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install tfenv

MacPorts ports tree · sysutils/tfenv/Portfile · ソース: api.github.com

Linux

Nix確認済み · 92%
nix profile install nixpkgs#tfenv

nixpkgs package indexes · pkgs/by-name/tf/tfenv/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S terraform

Arch Linux sync databases · terraform · ソース: geo.mirror.pkgbuild.com

Windows

Chocolatey確認済み · 92%
choco install terraform

Chocolatey community package catalog · terraform · ソース: community.chocolatey.org

Scoop確認済み · 92%
scoop install main/terraform

Scoop official bucket manifest trees · bucket/terraform.json · ソース: api.github.com

Windows Package Manager確認済み · 92%
winget install --id Hashicorp.Terraform -e

Windows Package Manager source index · Hashicorp.Terraform · ソース: cdn.winget.microsoft.com

概要

パッケージ概要

Terraform version manager inspired by rbenv

コマンドとエイリアス

  • terraform
  • tfenv

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2021: v2.2.0 release notes mention GitHub Actions migration and Homebrew-related macOS grep handling.
  • 2022: v3.0.0 major update adds Mac, auto-install/use, netrc, and private mirror improvements.
  • 2026: v3.1.0 is described as the first release since v3.0.0, with constraint, locking, and testing improvements.
  • 2026: v3.2.2 is listed as the latest release on the official releases page.

Related projects

  • `rbenv` is the version-manager pattern explicitly cited by tfenv.
  • Terraform is the binary managed by tfenv.
  • HashiCorp release servers and private mirrors are the remote sources tfenv installs from.

セキュリティ状態

リスクレベル: orange

infrastructure mutation or orchestration signal.

リスク分類器

リスク orange · 信頼度 中 · infrastructure

理由

  • infrastructure mutation or orchestration signal

信号

  • text:version manager

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

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

Config paths the tool may read or write during local use.

Unix
.terraform-version~/.terraform-version

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
$TFENV_NETRC_PATH

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
terraformcliグローバル実行可能ファイル
tfenvcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版3.2.2
マネージャ更新日2026-04-28
ローカルデータOK
上流最新
検出された最新v3.2.2

https://github.com/tfutils/tfenv

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキー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
Pulseupdated
依存関係grep
macOS 提供ライブラリunzip
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametfenv
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • tenv
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

tfenv

nix profile install nixpkgs#tfenv
  • normalized package name match
  • 一致条件: Tfenv
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tf/tfenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

tfenv

sudo port install tfenv
  • normalized package name match
  • 一致条件: Tfenv
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/tfenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
MacPorts94%

terraform

sudo port install terraform
  • installed executable or alias match
  • 一致条件: Terraform
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/terraform/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

terraform

nix profile install nixpkgs#terraform
  • installed executable or alias match
  • 一致条件: Terraform
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: terraform from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
pacman92%

terraform 1.15.6-1

HashiCorp tool for building and updating infrastructure as code idempotently

https://github.com/hashicorp/terraform

sudo pacman -S terraform
  • License: BUSL-1.1
  • Architecture: x86_64
  • 1 依存関係
  • 1 提供
  • 1 任意依存関係
  • installed executable or alias match
  • 一致条件: Terraform
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: terraform from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
Chocolatey92%

terraform

choco install terraform
  • installed executable or alias match
  • 一致条件: Terraform
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: terraform from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','telegram.install'
Scoop92%

main/terraform

scoop install main/terraform
  • installed executable or alias match
  • 一致条件: Terraform
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/terraform.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget92%

Hashicorp.Terraform

winget install --id Hashicorp.Terraform -e
  • installed executable or alias match
  • 一致条件: Terraform
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Hashicorp.Terraform from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

Hashicorp.Terraform.Alpha

winget install --id Hashicorp.Terraform.Alpha -e
  • installed executable or alias match
  • 一致条件: Terraform
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Hashicorp.Terraform.Alpha from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

Hashicorp.Terraform.Beta

winget install --id Hashicorp.Terraform.Beta -e
  • installed executable or alias match
  • 一致条件: Terraform
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Hashicorp.Terraform.Beta from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

Hashicorp.Terraform.RC

winget install --id Hashicorp.Terraform.RC -e
  • installed executable or alias match
  • 一致条件: Terraform
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Hashicorp.Terraform.RC from https://cdn.winget.microsoft.com/cache/source.msix

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

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