doctl plugin for the asdf version manager. Check doctl's README for latest supported installation options but if they do not suit your needs this can work for 1.21.1+.
Plugin:
asdf plugin add doctl
# or
asdf plugin add doctl https://github.com/bstoutenburgh/asdf-doctl.git
doctl:
# Show all installable versions
asdf list-all doctl
# Install specific version
asdf install doctl latest
# Set a version globally (on your ~/.tool-versions file)
asdf global doctl latest
# Now doctl commands are available
doctl help
Check asdf readme for more instructions on how to install & manage versions.
Contributions of any kind welcome! See the contributing guide.
Thanks goes to these contributors!
See LICENSE © Ben Stoutenburgh