tenv is a Go-based version management utility designed to maintain consistent infrastructure-as-code development environments. It supports OpenTofu, Terraform, Terragrunt, Terramate, and Atmos through a unified command-line interface. Automatic version resolution identifies compatible releases based on project-specific configuration files and version constraints. Missing executable versions can be downloaded automatically when required. Locally installed binaries remain available for switching between different infrastructure projects. Security mechanisms verify downloaded packages through SHA-256 checksums and supported PGP or Cosign signatures. Environment variables provide control over installation directories, remote sources, and execution behavior. tenv supports Windows, macOS, Linux, BSD, and Solaris.
Features
- Unified infrastructure-as-code version management supporting OpenTofu, Terraform, Terragrunt, Terramate, and Atmos
- Automatic version resolution based on project configuration files and infrastructure tool version constraints
- On-demand executable downloading with persistent local installation and automatic version switching
- Package integrity verification through SHA-256 checksums and supported PGP or Cosign signatures
- Customizable installation directories, remote download sources, and environment variable-based configuration
- Cross-platform command-line execution with tfenv and tofuenv command compatibility and automated CI/CD support