Overview:
The tfswitch
command line tool lets you switch between different versions of terraform. If you do not have a particular version of terraform installed, tfswitch
lets you download the version you desire.
Installation:
- Download the latest current version 0.13.1218 from here
- Extract tfswitch into
/usr/local/bin
. This directory is used for locally installed software.sudo mv tfswitch /usr/local/bin
- Check version:
tfswitch --version
Usage:
Usage of the tool is simple. You just need to run the tfswitch
command and select the required version of Terraform