# tofuenv を Homebrew でインストール

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

## インストール

```sh
sudo av install brew:tofuenv
```

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

### macOS

- Homebrew (100%):

```sh
brew install tofuenv
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:tofuenv
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/tofuenv>
- **バージョン:** 1.0.7
- **ソース概要:** OpenTofu version manager inspired by tfenv
- **ホームページ:** <https://tofuutils.github.io/tofuenv/>
- **リポジトリ:** <https://github.com/tofuutils/tofuenv>
- **上流ドキュメント:** <https://tofuutils.github.io/tofuenv/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/tofuutils/tofuenv/archive/refs/tags/v1.0.7.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- tofuenv (cli)
- tofuenv (エイリアス)

## 依存関係

- grep

## macOS 提供ライブラリ

- jq
- unzip

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.0.7
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/tofuutils/tofuenv
- 検出された最新: v1.0.7 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

tofuenv is an OpenTofu version manager, modeled after tfenv, for installing and selecting tofu versions from the shell.

### プロジェクトの歴史

tofuenv belongs to the OpenTofu post-fork tooling wave. OpenTofu itself was created after HashiCorp's 2023 Terraform license change and reached a first stable release on January 10, 2024.

The tofuenv README presents the project as an OpenTofu version manager inspired by tfenv, with support for macOS, Linux, and limited Windows/git-bash testing.

### 採用の歴史

The README documents installation through Homebrew, the Arch User Repository, and a Puppet module, while the input package facts list Homebrew packaging. This suggests its main adoption path is among shell users who already manage infrastructure tools through package managers and dotfiles.

### 使われ方

tofuenv installs explicit OpenTofu versions, latest versions, regex-selected latest versions, and versions inferred from OpenTofu required_version constraints. With no version argument it resolves TOFUENV_TOFU_VERSION first, then .opentofu-version files, then defaults to latest.

The tool also exposes package-nerd knobs such as tofuenv_REMOTE for custom release mirrors, tofuenv_ARCH for architecture selection, tofuenv_CONFIG_DIR for state/config placement, and tofuenv_NETRC_PATH for credentials when accessing a protected remote.

### パッケージ好きにとっての重要性

tofuenv is useful in the same niche as rbenv, pyenv, and tfenv: it makes infrastructure repositories self-describing through a checked-in version file and lets contributors switch CLI versions without replacing the system package.

### タイムライン

- 2023: OpenTofu was forked after the Terraform license change described in the OpenTofu manifesto.
- 2024-01-10: OpenTofu reached its first stable release.
- Current: tofuenv documents Homebrew, AUR, Puppet, manual clone, .opentofu-version, and environment-variable workflows.

### Related projects

- OpenTofu is the CLI managed by tofuenv.
- tfenv is the Terraform version manager that tofuenv cites as its inspiration.

### ソース

- <https://github.com/tofuutils/tofuenv#readme>
- <https://opentofu.org/blog/opentofu-is-going-ga/>
- <https://opentofu.org/manifesto/>
- <https://tofuutils.github.io/tofuenv>
- 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: ./.opentofu-version, ~/.opentofu-version

## Credential files

- Unix: $tofuenv_NETRC_PATH
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tofuenv
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** opentofu, tenv
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [grep](https://pkg.so/ja/brew/grep/) - Runtime dependency declared by Homebrew.
- [tfenv](https://pkg.so/ja/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, version-manager.
- [jenv](https://pkg.so/ja/brew/jenv/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, version-manager.
- [tenv](https://pkg.so/ja/brew/tenv/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, version-manager.
- [tgenv](https://pkg.so/ja/brew/tgenv/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, version-manager.
- [tfmigrate](https://pkg.so/ja/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu.
- [tfupdate](https://pkg.so/ja/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu.
- [anyenv](https://pkg.so/ja/brew/anyenv/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, version-manager.
- [tfschema](https://pkg.so/ja/brew/tfschema/) - Shares pkgdb curated category or tags: cli, developer-tools, infrastructure-as-code, opentofu.

## Combined YAML source

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


## ソース

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