{"id":10077,"date":"2026-06-08T20:35:47","date_gmt":"2026-06-08T12:35:47","guid":{"rendered":"https:\/\/jpuyy.com\/?p=10077"},"modified":"2026-06-08T20:35:47","modified_gmt":"2026-06-08T12:35:47","slug":"terraform-multi-version-tfenv","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=10077","title":{"rendered":"terraform multi-version tfenv"},"content":{"rendered":"<p>tfenv works like nvm for Node.js \u2014 it lets you install and switch between Terraform versions easily.<\/p>\n<p>git clone https:\/\/github.com\/tfutils\/tfenv.git ~\/.tfenv<\/p>\n<p>Update zshrc<br \/>\nexport PATH=$PATH:\/snap\/bin:~\/bin:~\/.local\/bin:~\/.pyenv\/bin:$HOME\/.tfenv\/bin<\/p>\n<p>tfenv install 1.8.5<\/p>\n<p>\u279c  ~ tfenv install 1.8.5<br \/>\nInstalling Terraform v1.8.5<br \/>\nDownloading release tarball from https:\/\/releases.hashicorp.com\/terraform\/1.8.5\/terraform_1.8.5_linux_amd64.zip<br \/>\n##################################################################################################################################################################################### 100.0%<br \/>\nDownloading SHA hash file from https:\/\/releases.hashicorp.com\/terraform\/1.8.5\/terraform_1.8.5_SHA256SUMS<br \/>\nNot instructed to use Local PGP (\/home\/yangy9\/.tfenv\/use-{gpgv,gnupg}) &#038; No keybase install found, skipping OpenPGP signature verification<br \/>\nArchive:  \/tmp\/tfenv_download.5vM1kH\/terraform_1.8.5_linux_amd64.zip<br \/>\n  inflating: \/home\/yangy9\/.tfenv\/versions\/1.8.5\/LICENSE.txt<br \/>\n  inflating: \/home\/yangy9\/.tfenv\/versions\/1.8.5\/terraform<br \/>\nInstallation of terraform v1.8.5 successful. To make this your default version, run &#8216;tfenv use 1.8.5&#8217;<\/p>\n<p>tfenv use 1.8.5<\/p>\n<p>\u279c  ~ which terraform<br \/>\n\/home\/myusername\/.tfenv\/bin\/terraform<\/p>\n<p>terraform &#8211;version<br \/>\nTerraform v1.8.5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>tfenv works like nvm for Node.js \u2014 it lets you install and switch between Terraform versions easily. git clone https:\/\/github.com\/tfutils\/tfenv.git ~\/.tfenv Update zshrc export PATH=$PATH:\/snap\/bin:~\/bin:~\/.local\/bin:~\/.pyenv\/bin:$HOME\/.tfenv\/bin tfenv install 1.8.5 \u279c ~ tfenv install 1.8.5 Installing Terraform v1.8.5 Downloading release tarball from https:\/\/releases.hashicorp.com\/terraform\/1.8.5\/terraform_1.8.5_linux_amd64.zip ##################################################################################################################################################################################### 100.0% Downloading SHA hash file from https:\/\/releases.hashicorp.com\/terraform\/1.8.5\/terraform_1.8.5_SHA256SUMS Not instructed to use Local PGP [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[194],"tags":[],"class_list":["post-10077","post","type-post","status-publish","format-standard","hentry","category-terraform"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/10077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10077"}],"version-history":[{"count":1,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/10077\/revisions"}],"predecessor-version":[{"id":10078,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/10077\/revisions\/10078"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}