jbang plugin for the asdf version manager.
asdf plugin-add jbang
or
asdf plugin-add https://github.com/jbangdev/jbang-asdf
# Show all installable versions
asdf list-all jbang
# Install specific version
asdf install jbang latest
# Set a version globally (on your ~/.tool-versions file)
asdf global jbang latest
# Now ag commands are available
jbang
Check out the asdf readme for instructions on how to install and manage versions of jbang
.