tfenv
Terraform version manager
...Skipping that directive means that the Hashicorp key must be in the existing default trusted keys. By default, console output from tfenv does not print a date stamp or log severity. Some variables allow you to pass a string containing a command that will be executed using eval in order to produce a prefix to each console output line, and each FILE type log entry. If you put a .terraform-version file on your project root, or in your home directory, tfenv detects it and uses the version written in it. If the version is latest or latest:<regex>, the latest matching version currently installed will be selected.