{"id":46748,"date":"2026-11-25T22:08:29","date_gmt":"2026-11-25T22:08:29","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=46748"},"modified":"2026-11-25T22:08:29","modified_gmt":"2026-11-25T22:08:29","slug":"comprehensive-tutorial-on-tfswitch","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/comprehensive-tutorial-on-tfswitch\/","title":{"rendered":"Comprehensive Tutorial on TFSwitch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">TFSwitch (tfswitch) is a small open-source CLI that downloads the Terraform version you need and points your <code>terraform<\/code> command at it, so each project can stay on its own release. This tutorial covers installation, the commands you will use every day, how to pin a version per project, switching automatically when you change directory, CI\/CD usage and fixes for common errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>TFSwitch<\/strong> is a command-line tool designed to switch between different versions of Terraform with ease. This tool is particularly useful for managing multiple projects that require different Terraform versions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key Features<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Version Management<\/strong>: Switch between different Terraform versions effortlessly.<\/li>\n\n\n\n<li><strong>Download Versions<\/strong>: If the desired version is not installed, TFSwitch will download it.<\/li>\n\n\n\n<li><strong>Compatibility<\/strong>: Works with configuration files like <code>.tfswitchrc<\/code>, <code>.tfswitch.toml<\/code>, and <code>version.tf<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Installation<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">For Windows<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the Windows version of TFSwitch from the <a href=\"https:\/\/github.com\/warrensbox\/terraform-switcher\/releases\" rel=\"noopener\">release page<\/a>.<\/li>\n\n\n\n<li>Extract the executable and add it to your system PATH.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">For macOS<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Using Homebrew, the installation is straightforward:<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/rajeshkumarin\/ca5450363891f67d1ee09f4735a7fc28.js\"><\/script>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Usage<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Integration with CI\/CD<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">TFSwitch can be integrated into CI\/CD pipelines to manage Terraform versions dynamically based on project requirements. You can specify the Terraform version directly in your pipeline configuration, ensuring consistent environments across different stages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Permission Issues<\/strong>: If you encounter permission issues, especially on Linux, ensure that the binary is installed in a directory where you have write access, such as <code>$HOME\/bin<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">TFSwitch is a powerful tool for managing multiple versions of Terraform, simplifying the development and deployment process across different environments. By leveraging configuration files and environment variables, TFSwitch ensures that the correct Terraform version is used consistently, reducing potential issues caused by version mismatches.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more detailed information, visit the official <a href=\"https:\/\/tfswitch.warrensbox.com\/\" rel=\"noopener\">TFSwitch documentation<\/a> and the <a href=\"https:\/\/github.com\/warrensbox\/terraform-switcher\" rel=\"noopener\">GitHub repository<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How tfswitch works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you run <code>tfswitch<\/code>, it works out which Terraform version you want. You can pass it as an argument, set it in an environment variable or config file, or pick it from a menu. If that version is not already cached, tfswitch downloads the official binary into a local cache directory, <code>~\/.terraform.versions<\/code> by default. It then links or copies that binary to the <strong>bin path<\/strong>, which is the file your shell runs when you type <code>terraform<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because of this, two things must be true for switching to work. The bin path must be writable by your user, and its directory must come before any other <code>terraform<\/code> binary in your <code>PATH<\/code>. Most tfswitch problems come down to one of these two.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install and verify<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Homebrew, Linux script and AUR commands in the gist above all work. On Linux, install to a directory you own so you do not need <code>sudo<\/code>, and make sure that directory is on your <code>PATH<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Install tfswitch into ~\/.local\/bin<\/span>\nmkdir -p <span class=\"hljs-string\">\"$HOME\/.local\/bin\"<\/span>\ncurl -L https:<span class=\"hljs-comment\">\/\/raw.githubusercontent.com\/warrensbox\/terraform-switcher\/master\/install.sh | bash -s -- -b \"$HOME\/.local\/bin\"<\/span>\n\n<span class=\"hljs-comment\"># Add the directory to PATH (use ~\/.zshrc for zsh)<\/span>\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">'export PATH=\"$HOME\/.local\/bin:$PATH\"'<\/span> &gt;&gt; ~\/.bashrc\nsource ~\/.bashrc\n\n<span class=\"hljs-comment\"># Verify<\/span>\ntfswitch --version\nwhich tfswitch<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Next, install Terraform through tfswitch and check that your shell picks it up:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">tfswitch -b <span class=\"hljs-string\">\"$HOME\/.local\/bin\/terraform\"<\/span> <span class=\"hljs-number\">1.5<\/span><span class=\"hljs-number\">.7<\/span>\nwhich terraform\nterraform version\n<span class=\"hljs-comment\"># Terraform v1.5.7<\/span>\n<span class=\"hljs-comment\"># on linux_amd64<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> If Terraform is already installed by a package manager (for example the Homebrew <code>terraform<\/code> formula or an apt package), remove it or make sure the tfswitch bin path comes first in <code>PATH<\/code>. If you skip this, <code>terraform version<\/code> can keep showing the old version after a successful switch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows, extract <code>tfswitch.exe<\/code> from the release archive into a folder such as <code>C:\\tools\\bin<\/code> and add that folder to your user <code>PATH<\/code>. Then run tfswitch with a bin path inside that same folder, for example <code>tfswitch -b C:\\tools\\bin\\terraform.exe 1.5.7<\/code>, so that the Terraform binary also lands somewhere you can write to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Everyday commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td><code>tfswitch<\/code><\/td><td>Uses a version from config files or environment if one is found. Otherwise it opens an interactive menu of recent stable releases.<\/td><\/tr><tr><td><code>tfswitch 1.5.7<\/code><\/td><td>Switches to that exact version and downloads it if needed.<\/td><\/tr><tr><td><code>tfswitch -l<\/code><\/td><td>Opens the interactive menu with all releases, including alpha, beta and rc builds.<\/td><\/tr><tr><td><code>tfswitch -u<\/code><\/td><td>Installs the latest stable release.<\/td><\/tr><tr><td><code>tfswitch -U<\/code> \/ <code>--show-latest<\/code><\/td><td>Prints the latest stable version without installing it.<\/td><\/tr><tr><td><code>tfswitch -s 1.5<\/code><\/td><td>Installs the latest patch release of the 1.5 line.<\/td><\/tr><tr><td><code>tfswitch -b ~\/bin\/terraform 1.5.7<\/code><\/td><td>Installs to a custom bin path.<\/td><\/tr><tr><td><code>tfswitch --help<\/code><\/td><td>Lists every flag that your installed release supports.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Flags change between releases. Recent versions add options such as a custom download mirror and support for other products such as OpenTofu. Check <code>tfswitch --help<\/code> for the options your version actually has.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pinning a version per project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The real value of tfswitch is that a plain <code>tfswitch<\/code> run inside a repository selects the right version on its own. It can read the version from several sources:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Source<\/th><th>Example<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td>Command-line argument<\/td><td><code>tfswitch 1.5.7<\/code><\/td><td>One-off switches. An explicit argument wins over the other sources.<\/td><\/tr><tr><td><code>TF_VERSION<\/code> environment variable<\/td><td><code>export TF_VERSION=1.5.7<\/code><\/td><td>CI jobs and temporary overrides<\/td><\/tr><tr><td><code>.tfswitchrc<\/code><\/td><td>File containing <code>1.5.7<\/code><\/td><td>A simple per-repository pin<\/td><\/tr><tr><td><code>.terraform-version<\/code><\/td><td>File containing <code>1.5.7<\/code><\/td><td>Repositories that are also used with tfenv<\/td><\/tr><tr><td><code>.tfswitch.toml<\/code><\/td><td><code>bin<\/code> and <code>version<\/code> keys<\/td><td>Custom bin paths, in your home directory or a project<\/td><\/tr><tr><td><code>required_version<\/code> in <code>.tf<\/code> files<\/td><td><code>required_version = &quot;~&gt; 1.5.0&quot;<\/code><\/td><td>Keeping the pin in Terraform code itself<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Using <code>required_version<\/code> is often the cleanest option, because Terraform enforces the same constraint itself. tfswitch reads the constraint from the Terraform files in the current directory and installs the newest release that satisfies it:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># versions.tf<\/span>\nterraform {\n  required_version = <span class=\"hljs-string\">\"~&gt; 1.5.0\"<\/span>\n\n  required_providers {\n    aws = {\n      source  = <span class=\"hljs-string\">\"hashicorp\/aws\"<\/span>\n      version = <span class=\"hljs-string\">\"~&gt; 5.0\"<\/span>\n    }\n  }\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">cd<\/span> <span class=\"hljs-selector-tag\">my-terraform-project<\/span>\n<span class=\"hljs-selector-tag\">tfswitch<\/span>\n<span class=\"hljs-selector-tag\">terraform<\/span> <span class=\"hljs-selector-tag\">version<\/span>   # <span class=\"hljs-selector-tag\">a<\/span> 1<span class=\"hljs-selector-class\">.5<\/span><span class=\"hljs-selector-class\">.x<\/span> <span class=\"hljs-selector-tag\">release<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Use one source per repository. If a project has both a <code>.tfswitchrc<\/code> and a different <code>required_version<\/code>, readers cannot easily tell which version will be used, and <code>terraform init<\/code> may refuse to run if the two disagree.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Switching automatically when you change directory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Running <code>tfswitch<\/code> by hand is easy to forget. In zsh you can add a hook that runs it every time you <code>cd<\/code> into a directory that contains a pin. Add this to <code>~\/.zshrc<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">autoload -U add-zsh-hook\n\nload-tfswitch() {\n  <span class=\"hljs-keyword\">if<\/span> &#91; -f <span class=\"hljs-string\">\".tfswitchrc\"<\/span> ] || &#91; -f <span class=\"hljs-string\">\".terraform-version\"<\/span> ] || &#91; -f <span class=\"hljs-string\">\".tfswitch.toml\"<\/span> ]; then\n    tfswitch\n  fi\n}\n\nadd-zsh-hook chpwd load-tfswitch\nload-tfswitch<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The hook runs only when one of these files exists. That keeps it from opening the interactive menu in unrelated directories. In bash you can get the same effect by wrapping <code>cd<\/code> in a function that calls <code>load-tfswitch<\/code> after changing directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using tfswitch in CI\/CD<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The CI\/CD idea in the section above works like this in practice. The pipeline installs tfswitch, and tfswitch installs whatever version the repository pins. Changing the pin in the repository is then enough to upgrade the pipeline. Here is a GitHub Actions example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">name: terraform\non: &#91;pull_request]\n\njobs:\n  plan:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v4\n\n      - name: Install tfswitch\n        run: |\n          mkdir -p <span class=\"hljs-string\">\"$HOME\/.local\/bin\"<\/span>\n          curl -L https:<span class=\"hljs-comment\">\/\/raw.githubusercontent.com\/warrensbox\/terraform-switcher\/master\/install.sh | bash -s -- -b \"$HOME\/.local\/bin\"<\/span>\n          <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"$HOME\/.local\/bin\"<\/span> &gt;&gt; <span class=\"hljs-string\">\"$GITHUB_PATH\"<\/span>\n\n      - name: Install pinned Terraform\n        run: tfswitch -b <span class=\"hljs-string\">\"$HOME\/.local\/bin\/terraform\"<\/span>\n\n      - name: Plan\n        run: |\n          terraform version\n          terraform init -input=<span class=\"hljs-keyword\">false<\/span>\n          terraform plan -input=<span class=\"hljs-keyword\">false<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li>The repository must contain a pin such as <code>.tfswitchrc<\/code> or <code>required_version<\/code>. CI has no terminal, so the interactive menu cannot be used there.<\/li>\n\n\n<li>Pass a release tag to the install script so that every run uses the same tfswitch build, rather than whatever is newest.<\/li>\n\n\n<li>Piping a remote script into <code>bash<\/code> runs code you have not reviewed. In stricter environments, download the release archive, check its checksum and extract it instead.<\/li>\n\n\n<li>If many jobs run, cache <code>~\/.terraform.versions<\/code> to avoid downloading Terraform on every run.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>permission denied<\/code> when switching<\/td><td>The bin path is in a system directory such as <code>\/usr\/local\/bin<\/code><\/td><td>Use <code>-b $HOME\/bin\/terraform<\/code> (or set <code>bin<\/code> in <code>.tfswitch.toml<\/code>) and add that directory to <code>PATH<\/code><\/td><\/tr><tr><td>Switch succeeds but <code>terraform version<\/code> is unchanged<\/td><td>Another <code>terraform<\/code> appears earlier in <code>PATH<\/code>, or the shell has cached the old location<\/td><td>Run <code>which -a terraform<\/code>, remove the other binary or reorder <code>PATH<\/code>, then run <code>hash -r<\/code><\/td><\/tr><tr><td><code>tfswitch: command not found<\/code><\/td><td>The install directory is not on <code>PATH<\/code><\/td><td>Add it to <code>PATH<\/code> in your shell profile and open a new shell<\/td><\/tr><tr><td>Download fails for old versions on Apple Silicon<\/td><td>Very old Terraform releases have no <code>darwin_arm64<\/code> build<\/td><td>Use a newer Terraform version, or use the amd64 build under Rosetta if your tfswitch release supports an architecture flag<\/td><\/tr><tr><td>Menu appears in CI and the job hangs or fails<\/td><td>No version source was found<\/td><td>Add <code>.tfswitchrc<\/code>, <code>required_version<\/code> or <code>TF_VERSION<\/code><\/td><\/tr><tr><td>Download fails behind a proxy<\/td><td>No proxy settings, or the release site is blocked<\/td><td>Set <code>HTTPS_PROXY<\/code>, or use a download mirror if your tfswitch release supports one<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections and clarifications to the original<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The feature list mentions <code>version.tf<\/code>. tfswitch does not look for a file with that name. It reads the <code>required_version<\/code> constraint from the Terraform files in the current directory. By convention that constraint usually lives in <code>versions.tf<\/code>, but any <code>.tf<\/code> file works.<\/li>\n\n\n<li>The gist describes <code>tfswitch -l<\/code> as listing all available versions. It actually opens an interactive menu that includes pre-release versions. A plain <code>tfswitch<\/code> with no pin shows a menu of stable releases.<\/li>\n\n\n<li>The examples above use very old versions (0.10.x to 0.14.x). They are fine for showing the syntax, but new projects should pin a current 1.x release. Releases older than 1.0.2 have no native Apple Silicon build.<\/li>\n\n\n<li>The Linux, Arch, usage and configuration file instructions exist only in the embedded gist. They do not show up if scripts are blocked. The core commands are repeated in plain text in this tutorial.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between tfswitch and tfenv?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Both manage several Terraform versions. tfenv uses shims and a <code>.terraform-version<\/code> file. tfswitch replaces the binary at a bin path, can read <code>required_version<\/code> from your Terraform code and offers an interactive menu. tfswitch also reads <code>.terraform-version<\/code>, so moving from one to the other is easy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where does tfswitch store downloaded Terraform versions?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default it keeps them in <code>~\/.terraform.versions<\/code>. Switching back to a version you have used before needs no new download.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I make tfswitch work without sudo?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Point the bin path at a directory you own, either with <code>tfswitch -b $HOME\/bin\/terraform<\/code> or with <code>bin = &quot;$HOME\/bin\/terraform&quot;<\/code> in <code>~\/.tfswitch.toml<\/code>. Then add <code>$HOME\/bin<\/code> to the front of your <code>PATH<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can tfswitch read the version from my Terraform code?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. If no explicit version is given, tfswitch reads the <code>required_version<\/code> constraint from the <code>.tf<\/code> files in the current directory. It then installs the newest release that satisfies that constraint.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I upgrade to the latest Terraform with tfswitch?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>tfswitch -u<\/code> to install the latest stable release. To see the latest version without installing it, run <code>tfswitch --show-latest<\/code>. Remember to update any pin files in your repositories as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/terraform-tutorials-tfsec-for-security-scanning\/\">Terraform Tutorials: TFSec for Security Scanning<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/version-control-workflow-master-tutorial\/\">Version Control Workflow Master Tutorial<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/devops\/version-control\/\">More Version Control tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>TFSwitch (tfswitch) is a small open-source CLI that downloads the Terraform version you need and points your terraform command at it, so each project can stay on&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[26140],"tags":[],"class_list":["post-46748","post","type-post","status-publish","format-standard","hentry","category-version-control"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/46748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=46748"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/46748\/revisions"}],"predecessor-version":[{"id":80251,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/46748\/revisions\/80251"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=46748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=46748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=46748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}