Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to download latest terraform version #110

Closed
hongkongkiwi opened this issue Oct 19, 2020 · 1 comment · Fixed by #125
Closed

Add flag to download latest terraform version #110

hongkongkiwi opened this issue Oct 19, 2020 · 1 comment · Fixed by #125
Assignees
Labels
new feature New feature or request

Comments

@hongkongkiwi
Copy link

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 warrensbox self-assigned this Nov 13, 2020
@warrensbox warrensbox added the new feature New feature or request label Nov 13, 2020
@warrensbox warrensbox linked a pull request Jan 13, 2021 that will close this issue
@warrensbox
Copy link
Owner

@hongkongkiwi

Install latest version only

  1. Install the latest stable version only.
  2. Run tfswitch -u or tfswitch --latest.
  3. Hit Enter to install.

Install latest implicit version for stable releases

  1. Install the latest implicit stable version.
  2. Ex: tfswitch -s 0.13 or tfswitch --latest-stable 0.13 downloads 0.13.6 (latest) version.
  3. Hit Enter to install.

Install latest implicit version for beta, alpha and release candidates(rc)

  1. Install the latest implicit pre-release version.
  2. Ex: tfswitch -p 0.13 or tfswitch --latest-pre 0.13 downloads 0.13.0-rc1 (latest) version.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants