Shamelessly copied from asdf-kubectl.
tctl plugin for asdf version manager.
asdf plugin-add tctl https://github.com/chirauki/asdf-tctl.git
Check out the asdf documentation for instructions on how to install and manage versions of tctl.
The ASDF_TCTL_OVERWRITE_ARCH
variable can be used to override the architecture that is used for determining which tctl
build to download. The primary use case is when attempting to install an older version of tctl
for use on an Apple M1 computer as tctl
was not built for ARM at the time.
$ asdf install tctl 1.5.2
Downloading tctl from https://binaries.dl.tetrate.io/public/raw/versions/darwin-amd64-1.5.2/tctl
$ ASDF_TCTL_OVERWRITE_ARCH=arm64 asdf install tctl 1.5.2
Downloading tctl from https://binaries.dl.tetrate.io/public/raw/versions/darwin-arm64-1.5.2/tctl
If you have a custom build of tctl
locally you can install a dev
version targetting it (it will be linked to asdf
's bin folder). You need to specify the path to your custom binary using ASDF_TCTL_DEV_PATH
env var.
$ ASDF_TCTL_DEV_PATH=/path/to/some/debug/bin/tctl asdf install tctl dev