tfversion is a command created to switch between different versions of Terraform.
- Install Golang (add var ENV),
- Build with commands
go build,makeorgo get -u github.com/perriea/tfversion, - Add in your
.bashrc(Linux),.bash_profile(Darwin, MacOS) or.zshrc:export PATH=$PATH:$HOME/.tfversion/bin.
➜ ~ ✗ tfversion
tfversion v0.1.6 - Switcher Terraform
Usage:
tfversion [command]
Available Commands:
help Help about any command
install Install new versions or switch
list List of terraform versions
remove Remove local version of Terraform
version Version installed of switcher Terraform
Flags:
-h, --help help for tfversion
Use "tfversion [command] --help" for more information about a command.The MIT License (MIT)
Copyright (c) 2017-2020 Aurelien PERRIER