tfswitch --help
Jump to navigation
Jump to search
tfswitch --help
Usage: tfswitch [-hluUv] [-b value] [-c value] [-m value] [-p value] [-P value] [-s value] [-S value] [parameters ...]
-b, --bin=value Custom binary path. Ex: tfswitch -b
/Users/username/bin/terraform
-c, --chdir=value Switch to a different working directory before executing the
given command. Ex: tfswitch --chdir terraform_project will
run tfswitch in the terraform_project directory
-h, --help Displays help message
-l, --list-all List all versions of terraform - including beta and rc
-m, --mirror=value
Install from a remote API other than the default. Default:
https://releases.hashicorp.com/terraform
-p, --latest-pre=value
Latest pre-release implicit version. Ex: tfswitch
--latest-pre 0.13 downloads 0.13.0-rc1 (latest)
-P, --show-latest-pre=value
Show latest pre-release implicit version. Ex: tfswitch
--show-latest-pre 0.13 prints 0.13.0-rc1 (latest)
-s, --latest-stable=value
Latest implicit version based on a constraint. Ex: tfswitch
--latest-stable 0.13.0 downloads 0.13.7 and 0.13 downloads
0.15.5 (latest)
-S, --show-latest-stable=value
Show latest implicit version. Ex: tfswitch
--show-latest-stable 0.13 prints 0.13.7 (latest)
-u, --latest Get latest stable version
-U, --show-latest Show latest stable version
-v, --version Displays the version of tfswitch
Supply the terraform version as an argument, or choose from a menu
See also[edit]
Advertising: