tfutils / tfenv

Terraform version manager
MIT License
4.53k stars 453 forks source link

Auto-install non-downloaded version #299

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello! Could be a good feature, when we use the command "tfenv use x.x.x" if that version wasn't installed, automatically download it and install it, to avoid execute the installation steps before use it. tfenv!

Thanks!

OJFord commented 2 years ago

In case you're unaware - if you use TFENV_AUTO_INSTALL=true, and put the version in a .terraform-version file, you can just run terraform ... and have that behaviour.

I agree it'd be nice/less surprising if tfenv use respected that too for when it's more convenient to switch on the CLI though.