A version manager for OpenTofu, enabling easy installation and switching between different versions.
tofuenv is a version manager for OpenTofu, designed to simplify the installation, management, and switching of OpenTofu versions across different environments. It provides a consistent workflow for developers and teams working with infrastructure as code, ensuring compatibility and reproducibility by handling multiple versions, automatic version resolution, and verification.
Infrastructure developers and teams using OpenTofu for infrastructure as code who need to manage multiple OpenTofu versions across projects or environments. It is particularly useful for those requiring reproducible builds and cross-platform compatibility.
Developers choose tofuenv for its lightweight, script-based design that follows the Unix philosophy, seamless shell integration, and features like semantic version support, automatic version resolution from files, and optional GPG verification. It is a dedicated tool inspired by tfenv but specifically for OpenTofu.
OpenTofu version manager
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates with .opentofu-version files and TOFUENV_TOFU_VERSION environment variables to automatically switch OpenTofu versions, ensuring project-specific compatibility without manual intervention.
Supports exact semver, regex patterns like latest:^1.6, and can detect min-required or latest-allowed versions from OpenTofu configuration files, streamlining complex version management.
Allows configuration of custom download remotes (e.g., Artifactory) via TOFUENV_REMOTE and optional GPG verification with use-gpgv files, catering to restricted networks and security needs.
Follows the Unix philosophy with script-based design, easily installed via Homebrew or manual clone, and integrates seamlessly into bash/zsh workflows without heavy overhead.
Only tested in git-bash with presumed symlink issues, making it unreliable for native Windows usage and requiring cumbersome workarounds that may fail in production environments.
Requires jq for JSON processing and optionally gnupg for verification, adding installation steps and potential compatibility problems, especially on minimal or locked-down systems.
The README actively promotes tenv as the future tool for both Terraform and OpenTofu, indicating that tofuenv may receive reduced updates and community focus over time.