tenv
$ tenv Community Low Risktenv replaces tfenv, tofuenv, and tgenv with a single static Go binary written in the OpenTofu ecosystem. It auto-detects .terraform-version, .opentofu-version, .terragrunt-version, and HCL required_version constraints, verifying Cosign and PGP signatures automatically.
brew install tenv Local binary shim and signature-verified installer; unsuitable for remote MCP tools.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Predictable subcommand tree (tofu, tf, tg, tm, atmos), deterministic auto-detection, and headless execution, though output is plain text rather than JSON.
- Non-interactive
detect,list, andinstallsubcommands - No structured
--jsonoutput flag
Verifies Cosign and PGP signatures by default before caching binaries locally; zero cloud state mutations.
- Built-in PGP and Cosign verification on downloaded binaries
Static Go binary supporting macOS, Linux, and Windows via Homebrew, scoop, winget, deb/rpm, and Go.
- Cross-platform Go binary with zero Bash/Ruby dependencies
Consolidates five IaC version managers into one binary and parses HCL required_version directly.
- Manages OpenTofu, Terraform, Terragrunt, Terramate, and Atmos
Actively maintained by tofuutils under Apache-2.0 within the OpenTofu ecosystem.
- Active
tofuutils/tenvrepository with Apache-2.0 license
Clear documentation site and --help output per IaC tool subcommand.
- Documented at tofuutils.github.io/tenv
Security, Auth & Guardrails
No user login required; optionally accepts TENV_GITHUB_TOKEN (-t) to avoid GitHub API rate limits when resolving remote releases.
Apache-2.0 open-source and free.
# tenv Agent Rules - Run `tenv tofu detect` or `tenv tf detect` before running IaC plans. - Pass `TENV_GITHUB_TOKEN` in CI to avoid unauthenticated GitHub rate limits. - Avoid `tenv tf uninstall` unless cleaning a dedicated runner cache.
Agent-Ready Command Recipes
Safe Read-Only Queries
tenv tofu list && tenv tf list
Displays locally cached OpenTofu and Terraform binaries without network calls.
tenv tofu detect
Inspects .opentofu-version, required_version, and env vars to show the resolved version.
Controlled Writes & Previews
tenv tf install
Downloads and signature-verifies the version declared in the repo's constraint files.
Strengths for Agents
- + Single binary manages OpenTofu, Terraform, Terragrunt, Terramate, and Atmos.
- + Built-in Cosign and PGP verification plus HCL
required_versionparsing. - + Cross-platform static Go binary including native Windows support.
Caveats & Pitfalls
- ! Outputs human-readable text without a
--jsonflag. - ! Remote release lookups can hit GitHub rate limits if
TENV_GITHUB_TOKENis unset.