A Terraform Version Manager written in Go
This project has been deprecated and archived at v2.0.0. It is recommended to use tfswitch as a replacement.
- Easily manage multiple terraform versions to use across projects.
- Run
tfvm usewith no version argument to switch to the version specified in the current directory's.tfversionfile. - Works on Linux, Mac, and Windows.
tfvm installs and manages different versions of terraform in the CLI.
Install via Homebrew:
brew tap ehassett/tfvm
brew install tfvmInstall via Scoop:
scoop bucket add tfvm https://github.com/ehassett/tfvm
scoop install tfvmInstall via the install script (requires both curl and wget):
wget -q -O - https://raw.githubusercontent.com/ehassett/tfvm/master/install.sh | bashInstall latest with go install (or substitute a version):
go install github.com/ehassett/tfvm@latestRun tfvm --version to verify installation.
You may need to add $HOME/.tfvm to PATH after installing tfvm |
$ tfvm --help
Usage: tfvm [--version] [--help] <command> [<args>]
Available commands are:
install Install a version of Terraform
list List all installed versions of Terraform
remove Remove a specific version of Terraform
use Select a version of Terraform to use
Contributions to this project are welcome and much appreciated!
- Use Golang version
1.16. - Fork this repo.
- Commit and push your changes, using proper conventional commit format.
- Open a Pull Request, rebasing against
masterif needed.
Bugs, feature requests, and comments are more than welcome in the issues.