![]() ![]() Tired of always switching terraform version every time you changed project or even folder ?Īdd a. If you'd like to list all the versions of Terraform that you have installed on your computer, then run the following command: tfenv list Tfenv uninstall latest:^0.8 # matches the first one corresponding Then use the command tfenv uninstall like this tfenv uninstall 0.7.0 Tired of having dozens of Terraform versions on your computer or you need to free up some space. ![]() Here are examples on how to use it tfenv use The tfenv use changes the Terraform version in your path. Tfenv install min-required # scans terraform files to determine version Here are examples on how to use it tfenv install # Latest The tfenv install installs a specific Terraform version on your computer. Now that you have Tfenv installed on your computer, let's look at how to use it. If you are having difficulties installing it, you can find more information in its GitHub repository. ![]() git clone ~/.tfenvĪdd the Tfenv bin into your path echo 'export PATH="$HOME/.tfenv/bin:$PATH"' > ~/.bash_profile In order to get Tfenv working on your computer you need to locally install it.įirst clone Tfenv Repository into your home folder. On MacOs Tfenv is available via brew brew install tfenv If you own a MacBook or a Linux based Computer then you'll be able to install Tfenv in a few seconds. There is an easy integration with the Linux Bash now available on windows. Looking on how to change Terraform version on windows ? You could look at how to install Ubuntu Bash on your Windows 10 computer. Unfortunately Tfenv is currently only supported on the following OS: This tool has changed my DevOps experience. I'll show you how to do that in a few lines. If your set it up correctly you won't even have to thing about your terraform version anymore. You could change your path, uninstall your current Terraform version and install the specific one you need or, you could use an easy tool that will simplify your life. You find yourself working on multiple terraform projects and they all have different terraform versions? Changing your Terraform version is tedious and you'd like an easy way to automate this process ? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |