macOS
brew install tenvlocal Homebrew formula metadata
sudo port install tenvMacPorts ports tree · sysutils/tenv/Portfile · 来源: api.github.com
安装
brew install tenvlocal Homebrew formula metadata
sudo port install tenvMacPorts ports tree · sysutils/tenv/Portfile · 来源: api.github.com
sudo apk add tenvAlpine Linux edge package indexes · tenv · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#tenvnixpkgs package indexes · pkgs/by-name/te/tenv/package.nix · 来源: api.github.com
sudo apt install tfUbuntu 24.04 LTS package indexes · tf · 来源: archive.ubuntu.com
scoop install main/tenvScoop official bucket manifest trees · bucket/tenv.json · 来源: api.github.com
winget install --id Tofuutils.Tenv -eWindows Package Manager source index · Tofuutils.Tenv · 来源: cdn.winget.microsoft.com
概览
OpenTofu / Terraform / Terragrunt / Terramate / Atmos version manager
历史
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.
安全态势
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.
${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可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tenv | cli | 全局可执行文件 | |
terramate | cli | 全局可执行文件 | |
tf | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/tofuutils/tenv
安装元数据
| 软件包键 | brew:tenv |
|---|---|
| 版本 | 4.15.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/tenv |
| 主页 | 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-24T15:39:15Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tenv |
| 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 软件包链接分开显示。
tenv
nix profile install nixpkgs#tenvtenv 4.12.2-r0
OpenTofu, Terraform, Terragrunt, and Atmos version manager
https://github.com/tofuutils/tenv
sudo apk add tenvtenv-bash-completion 4.12.2-r0
Bash completions for tenv
https://github.com/tofuutils/tenv
sudo apk add tenv-bash-completiontenv-fish-completion 4.12.2-r0
Fish completions for tenv
https://github.com/tofuutils/tenv
sudo apk add tenv-fish-completiontenv-zsh-completion 4.12.2-r0
Zsh completions for tenv
https://github.com/tofuutils/tenv
sudo apk add tenv-zsh-completiontenv
sudo port install tenvmain/tenv
scoop install main/tenvTofuutils.Tenv
winget install --id Tofuutils.Tenv -etf
sudo port install tfterramate
nix profile install nixpkgs#terramatetf
nix profile install nixpkgs#tftf 1:4.0s1-21.1
Tinyfugue MUD client for TinyMUDs, DikuMUDs, and LPMUDs
sudo apt install tfmain/tf
scoop install main/tfTerramate.CLI
winget install --id Terramate.CLI -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.