# tfenv

> Terraform version manager inspired by rbenv

Source: https://talira.ai/catalog/tfenv-f1mbyz2b
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / environment / version managers](https://talira.ai/categories/developer-tools/environment/version-managers)
- Platforms: macos, linux, windows[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Backed by: [tfutils](https://talira.ai/orgs/tfutils.md)

tfenv installs several versions of [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md) side by side and switches between them, in the style of rbenv. It picks the version from a `.terraform-version` file or an environment variable, can resolve the newest or oldest version a configuration's `required_version` allows (`latest-allowed`, `min-required`), pins the current version to a file, lists local and remote versions, and checks each download's hashes, verifying their signature with Keybase or GnuPG when available. It is a set of shell scripts for macOS, Linux and Windows under Git Bash.

## Links

- GitHub: https://github.com/tfutils/tfenv

## Problems it solves

- different projects need different Terraform versions and switching by hand is a pain
- automatically use the Terraform version a repo pins in a file when I cd into it
- install the newest Terraform version my configuration's required_version allows
- check that the Terraform binary I download hasn't been tampered with
- CI should install exactly the Terraform version the project expects
- keep several Terraform releases installed side by side

## Features

- install, use, uninstall and list Terraform versions
- reads .terraform-version files and TFENV_TERRAFORM_VERSION
- latest-allowed and min-required resolve versions from required_version
- tfenv pin writes the current version to .terraform-version
- verifies download hashes, with Keybase or GnuPG signature checks
- auto-install on first use, configurable architecture

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by tfutils

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md)

## Alternatives

- [mise](https://talira.ai/catalog/mise-0axr08xw.md): dev tools, env vars, task runner
- [asdf](https://talira.ai/catalog/asdf-50ez7g9r.md): Manage multiple runtime versions with a single CLI tool, extendable via plugins
- [Hermit](https://talira.ai/catalog/hermit-w8apxxs8.md): Isolated, self-bootstrapping sets of tools for each software project

## Sources

[^1]: https://github.com/tfutils/tfenv/blob/master/LICENSE (checked 22 Nov 2026)
[^2]: https://github.com/tfutils/tfenv (checked 22 Nov 2026)
