Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 2.28 KB

install.md

File metadata and controls

84 lines (61 loc) · 2.28 KB

Table of Contents generated with DocToc

Installation

Using go

go install github.com/containerscrew/tftools

Using brew

brew tap containerscrew/tftools https://github.com/containerscrew/tftools
brew install tftools

Install latest version

curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/containerscrew/tftools/main/scripts/install.sh | sh

Install specific release

curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/containerscrew/tftools/main/scripts/install.sh | sh -s -- -v "v0.8.0"

You will find apk, rpm and deb packages in releases

For example, a deb package:

TFTOOLS_LATEST_VERSION=$(curl -s https://api.github.com/repos/containerscrew/tftools/releases/latest | jq -r ".name")
TFTOOLS_CLI_ARCH=amd64
if [ "$(uname -m)" = "aarch64" ]; then TFTOOLS_CLI_ARCH=arm64; fi
curl -L --fail --remote-name-all https://github.com/containerscrew/tftools/releases/download/${TFTOOLS_LATEST_VERSION}/tftools-linux-${TFTOOLS_CLI_ARCH}.deb
sudo dpkg -i tftools-linux-${TFTOOLS_CLI_ARCH}.deb
rm dpkg -i tftools-linux-${TFTOOLS_CLI_ARCH}.deb

Supported OS

OS ARM64 AMD64
Mac
Linux

Check version

tftools version

Updating latest version

With brew

brew update
brew upgrade containerscrew/tftools/tftools

Using curl

curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/containerscrew/tftools/main/scripts/install.sh | sh