A Homebrew tap containing the Formula for the SDKMAN! CLI.
$ brew tap sdkman/tap
$ brew install sdkmancli
After successful installation add the following lines to the end of your .bash_profile
export SDKMAN_DIR=$(brew --prefix sdkmancli)/libexec
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"
Open a new terminal and type
sdk version
The output should look similar to this
SDKMAN 5.18.2