From bf7523049c126b9080c3b292e1a363d983cf0e7c Mon Sep 17 00:00:00 2001 From: rickderuiter Date: Wed, 20 Dec 2023 21:08:15 +0100 Subject: [PATCH] Added SDKMAN.md --- source/_posts/sdkman.md | 92 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 source/_posts/sdkman.md diff --git a/source/_posts/sdkman.md b/source/_posts/sdkman.md new file mode 100644 index 0000000..95058c8 --- /dev/null +++ b/source/_posts/sdkman.md @@ -0,0 +1,92 @@ +--- +title: SDKMAN! +date: 2023-12-18 20:25:30 +background: bg-[#cf5e3c] +label: +tags: + - command + - software development kits + - sdk +categories: + - Linux Command +intro: | + This cheatsheet provides the most commonly used SDKMAN! command line instructions +plugins: + - copyCode +--- + +Getting Started +--------------- + +### Installing SDKMAN! +Download SDKMAN! +``` shell script +$ curl -s "https://get.sdkman.io" | bash +``` + +Install SDKMAN! +``` shell script +$ source "$HOME/.sdkman/bin/sdkman-init.sh" +``` + +Check the version +``` shell script +$ sdk version +``` + +Update +``` shell script +$ sdk update +``` + +Help +``` shell script +$ sdk help +``` + + +### Installing and managing candidates {.row-span-2} +List all candidates +``` shell script +$ sdk list +``` + +List versions of a candidate +``` shell script +$ sdk list +``` + +Install a candidate with the latest version +``` shell script +$ sdk install +``` + +Install a candidate with specific version +``` shell script +$ sdk install +``` + +Temporarily switch between versions +``` shell script +$ sdk use +``` + +Permanently switch to version +``` shell script +$ sdk default +``` + +Display specific candidate version in use +``` shell script +$ sdk current +``` + +Display all candidates versions in use +``` shell script +$ sdk current +``` + +Remove a candidate +``` shell script +$ sdk uninstall +```