Terraform Switcher is a Go-based command-line utility designed to simplify managing and switching between different versions of Terraform. It automatically downloads missing binaries and retains previously installed versions for subsequent use. An interactive selection menu allows users to browse available releases directly from the terminal. Developers can specify exact versions or automatically resolve versions according to project constraints. Configuration detection supports Terraform files, Terragrunt configurations, environment variables, and dedicated settings files. Users can select stable releases or include alpha, beta, and release candidate versions. Customizable installation paths and download mirrors accommodate specialized development infrastructure. TFSwitch supports Windows, macOS, and Linux.
Features
- Automated Terraform version downloading and switching through an interactive command-line selection interface
- Project-specific version resolution based on Terraform constraints and compatible Terragrunt configuration files
- Persistent local binary caching for switching between previously downloaded Terraform versions
- Flexible release selection supporting exact versions, stable releases, and experimental prerelease builds
- Customizable installation directories, binary paths, download mirrors, and environment variable configurations
- Non-interactive execution with version inspection commands and automated CI/CD workflow compatibility