cbuschka / tfvm

Terraform Version Manager - Always the right terraform version for your project
Apache License 2.0
18 stars 4 forks source link
golang terraform tool version-manager wrapper

tfvm - Terraform version manager

Build Latest Release Go Report Card License

Always the right terraform version for your project

Features

System Requirements

Installation

as root in /usr/local/bin

curl -sL https://raw.githubusercontent.com/cbuschka/tfvm/main/install.sh -o - | sudo bash

as unpriviledged user in ${HOME}/.local/bin if available, else ${HOME}/bin as a fallback

curl -sL https://raw.githubusercontent.com/cbuschka/tfvm/main/install.sh -o - | bash

manual installation

Usage

Show which terraform version would be executed

tfvm which

List terraform versions

tfvm list

Configure terraform version

echo "1.3.7" > .terraform-version

tfvm which

"latest" and semver ranges, e.g. >= 1.3.0, <1.4.0, are also supported.

Invoke selected terraform

tfvm terraform version

Tip: Call selected terraform directly

ln -s tfvm terraform

terraform version

More commands via tfvm usage info

tfvm help

Environment Variables

Supported Environment Variables

Development Requirements

Similar tools

Contributing

Contributions are welcome!

By contributing you accept to contribute under the license of this project.

Contributors

Contributors

License

Copyright (c) 2020-2021 by Cornelius Buschka.

Apache License, Version 2.0

Thanks!

Special thanks goes to JetBrains s.r.o. for supporting the development of this project with a free IntelliJ IDEA Ultimate IntelliJ IDEA license.