A small command line utility to manage Terraform versions written in Go. It allows you to quickly switch, add, and remove versions as needed. It should support all operating systems and architectures supported by Terraform.
If you get output similar to below Terraform has already been installed and is on your $PATH. You will need to remove any existing installations beofre installing tfsw
:
command -v terraform
/usr/local/bin/terraform
You can grab binary releases from https://github.com/m33x-7/tfsw/releases and add them into your $PATH
in a place like ~/bin
.
For example, if you're on Linux, you can do this:
curl https://github.com/m33x-7/tfsw/releases/download/0.0.0/tfsw_linux_amd64.gz | gunzip -c > ~/bin/tfsw
Install Go 1.17 manually or via your operating systems package manager. You will also need to install GNU Make.
Then run the following in the repo:
make && make install
This will put tfsw
in ~/bin/tfsw
which you will need to add to your $PATH
:
export "${HOME}/bin:${PATH}"