Add flag to download latest terraform version
Closed this issue · 1 comments
hongkongkiwi commented
It would be great if I could pass --latest to just download the latest terraform version.
I'm using this in a docker container so having a handy flag would be great, right now I've gotta do an external github lookup to terraform to get the latest version number then pass that into tfswitch.
warrensbox commented
Install latest version only
- Install the latest stable version only.
- Run
tfswitch -u
ortfswitch --latest
. - Hit Enter to install.
Install latest implicit version for stable releases
- Install the latest implicit stable version.
- Ex:
tfswitch -s 0.13
ortfswitch --latest-stable 0.13
downloads 0.13.6 (latest) version. - Hit Enter to install.
Install latest implicit version for beta, alpha and release candidates(rc)
- Install the latest implicit pre-release version.
- Ex:
tfswitch -p 0.13
ortfswitch --latest-pre 0.13
downloads 0.13.0-rc1 (latest) version. - Hit Enter to install.
Please upgrade to the latest version (Version: 0.10.958):
https://tfswitch.warrensbox.com/Upgrade-or-Uninstall/
Please help me test this version and let me know if you find any issues. Thank you.