# tenv を Homebrew, apk, MacPorts, Nix, scoop, winget, apt でインストール

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

## インストール

```sh
sudo av install brew:tenv
```

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

### macOS

- Homebrew (100%):

```sh
brew install tenv
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tenv
```

  証拠: MacPorts ports tree: sysutils/tenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add tenv
```

  証拠: Alpine Linux edge package indexes: tenv from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#tenv
```

  証拠: nixpkgs package indexes: pkgs/by-name/te/tenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Ubuntu apt (92%):

```sh
sudo apt install tf
```

  証拠: Ubuntu 24.04 LTS package indexes: tf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- Scoop (92%):

```sh
scoop install main/tenv
```

  証拠: Scoop official bucket manifest trees: bucket/tenv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Tofuutils.Tenv -e
```

  証拠: Windows Package Manager source index: Tofuutils.Tenv from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:tenv
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/tenv>
- **バージョン:** 4.15.1
- **ソース概要:** OpenTofu / Terraform / Terragrunt / Terramate / Atmos version manager
- **ホームページ:** <https://tofuutils.github.io/tenv/>
- **リポジトリ:** <https://github.com/tofuutils/tenv>
- **上流ドキュメント:** <https://tofuutils.github.io/tenv/>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/tofuutils/tenv/archive/refs/tags/v4.15.1.tar.gz>
- **最終更新:** 2026-07-26T00:50:34+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- atmos (cli)
- tenv (cli)
- terramate (cli)
- tf (cli)
- atmos (エイリアス)
- tenv (エイリアス)
- terramate (エイリアス)
- tf (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.15.1
- マネージャ更新日: 2026-07-26
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/tofuutils/tenv
- 検出された最新: v4.15.1 (最新)
## プロジェクトの歴史と使われ方

tenv is a Go version manager for OpenTofu, Terraform, Terragrunt, Terramate, and Atmos. Its README describes it as a successor to tofuenv and tfenv, with extra infrastructure-as-code awareness and cross-platform binary distribution.

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

The GitHub repository was created in January 2024, shortly after OpenTofu became a prominent Terraform-compatible tool. The project consolidated separate environment-manager patterns for Terraform and OpenTofu into one executable that also manages adjacent tools used in IaC workflows.

### 採用の歴史

The official README documents broad package availability across Homebrew, MacPorts, Nix, Scoop, WinGet, Chocolatey, Snap, Alpine, Debian/Ubuntu, RedHat, Arch/AUR, Cloudsmith repositories, and Docker. The supplied package metadata also records Homebrew, apk, MacPorts, Nix, Scoop, Ubuntu, and WinGet entries.

### 使われ方

Users run `tenv <tool> <command>` to install, use, detect, reset, uninstall, and list versions for OpenTofu, Terraform, Terragrunt, Terramate, and Atmos. The docs emphasize version files, HCL-based required-version detection, semver constraints, signature verification, and compatibility with tfenv and tofuenv command habits.

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

tenv is significant for package nerds because it sits at the junction of packaging, IaC reproducibility, and the Terraform-to-OpenTofu transition. It offers one binary with package-manager-friendly releases, shell completions, version-file conventions, checksum and signature checks, and aliases that preserve older tfenv/tofuenv workflows.

### タイムライン

- 2024-01-05: GitHub repository created.
- 2024-01-23: v1.0.4 release published.
- 2024-05-14: v1.11.0 release published.
- 2026-04-29: v4.12.0 release published.
- 2026-06-10: v4.14.8 release published.

### Related projects

- The README explicitly identifies tofuenv and tfenv as predecessors, compares tenv with asdf, and targets OpenTofu, Terraform, Terragrunt, Terramate, and Atmos.

### ソース

- <https://api.github.com/repos/tofuutils/tenv>
- <https://api.github.com/repos/tofuutils/tenv/releases>
- <https://github.com/tofuutils/tenv#readme>
- <https://tofuutils.github.io/tenv>
- 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: ${HOME}/.tenv/remote.yaml, ${HOME}/.tenv/OpenTofu/version, ${HOME}/.tenv/Terraform/version, ${HOME}/.tenv/Terragrunt/version, ${HOME}/.tenv/Terramate/version, ${HOME}/.tenv/Atmos/version, ./.opentofu-version, ./.terraform-version, ./.tfswitchrc, ./.terragrunt-version, ./.tgswitchrc, ./.terramate-version, ./.atmos-version, ./.tool-versions
## ソースデータベース詳細

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

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

- Nix - tenv: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/tenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tenv - 4.12.2-r1: normalized package name match | Alpine Linux edge package indexes: tenv from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | OpenTofu, Terraform, Terragrunt, and Atmos version manager | https://github.com/tofuutils/tenv
- apk - tenv-bash-completion - 4.12.2-r1: normalized package name match | Alpine Linux edge package indexes: tenv-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for tenv | https://github.com/tofuutils/tenv
- apk - tenv-fish-completion - 4.12.2-r1: normalized package name match | Alpine Linux edge package indexes: tenv-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for tenv | https://github.com/tofuutils/tenv
- apk - tenv-zsh-completion - 4.12.2-r1: normalized package name match | Alpine Linux edge package indexes: tenv-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for tenv | https://github.com/tofuutils/tenv
- MacPorts - tenv: normalized package name match | MacPorts ports tree: sysutils/tenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/tenv: normalized package name match | Scoop official bucket manifest trees: bucket/tenv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Tofuutils.Tenv: normalized package name match | Windows Package Manager source index: Tofuutils.Tenv from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - tf: installed executable or alias match | MacPorts ports tree: net/tf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - atmos: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/at/atmos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - terramate: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/te/terramate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - tf: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/tf/tf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tf - 1:4.0s1-21.1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: tf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tinyfugue MUD client for TinyMUDs, DikuMUDs, and LPMUDs
- Scoop - main/atmos: installed executable or alias match | Scoop official bucket manifest trees: bucket/atmos.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Scoop - main/tf: installed executable or alias match | Scoop official bucket manifest trees: bucket/tf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Terramate.CLI: installed executable or alias match | Windows Package Manager source index: Terramate.CLI from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [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.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [terragrunt](https://pkg.so/ja/brew/terragrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, terraform.
- [tfenv](https://pkg.so/ja/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform, version-manager.
- [tgenv](https://pkg.so/ja/brew/tgenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terragrunt, version-manager.
- [tfmigrate](https://pkg.so/ja/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, terraform.
- [terramate](https://pkg.so/ja/brew/terramate/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, terraform.
- [tfupdate](https://pkg.so/ja/brew/tfupdate/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, terraform.
- [terratag](https://pkg.so/ja/brew/terratag/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform, terragrunt.
- [tofuenv](https://pkg.so/ja/brew/tofuenv/) - Shares pkgdb curated category or tags: cli, developer-tools, opentofu, version-manager.

## Combined YAML source

View the package source record on GitHub. [combined/tenv.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tenv.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
- external package-manager database matches
- cross-ecosystem install command graph
