A Homebrew tap containing the Formula for the SDKMAN! CLI.
brew tap sdkman/tap
brew install sdkman/tap/sdkman-cliRecent Homebrew versions only load formulae from non-official taps once they are trusted. Installing by the fully qualified name, as above, trusts the sdkman-cli formula. To use the short name brew install sdkman-cli instead, trust it explicitly first:
brew trust --formula sdkman/tap/sdkman-cliSee Homebrew's Tap Trust documentation for details.
After successful installation add the following lines to the end of your .bash_profile after the brew shellenv line
export SDKMAN_DIR=$(brew --prefix sdkman-cli)/libexec
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"Open a new terminal and type
sdk versionThe output should look similar to this
SDKMAN!
script: 5.24.0
native: 0.8.0