Step 1: Open terminal and execute below command to install sdkman.
curl -s https://get.sdkman.io | bash
On successful installation of sdkman, you will get below message in the terminal.
All done!
You are subscribed to the STABLE channel.
Please open a new terminal, or run the following in the existing one:
source "/Users/krishna/.sdkman/bin/sdkman-init.sh"
Then issue the following command:
sdk help
Enjoy!!!
Open a new terminal or type the command:
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
In my case
I executed below command to initialize sdkman.
source "/Users/krishna/.sdkman/bin/sdkman-init.sh"
Execute the command ‘sdk help’ to get the help of sdk command line tool.
bash-3.2$ sdk help
==== BROADCAST =================================================================
* 2022-09-22: springboot 2.6.12 available on SDKMAN! https://github.com/spring-projects/spring-boot/releases/tag/v2.6.12
* 2022-09-21: neo4jmigrations 1.12.0 available on SDKMAN! https://github.com/michael-simons/neo4j-migrations/releases/tag/1.12.0
* 2022-09-21: micronaut 3.7.0 available on SDKMAN!
================================================================================
NAME
sdk - The command line interface (CLI) for SDKMAN!
SYNOPSIS
sdk <subcommand> [candidate] [version]
DESCRIPTION
SDKMAN! is a tool for managing parallel versions of multiple JVM related
Software Development Kits on most Unix based systems. It provides a
convenient Command Line Interface (CLI) and API for installing, switching,
removing and listing Candidates.
SUBCOMMANDS & QUALIFIERS
help [subcommand]
install <candidate> [version] [path]
uninstall <candidate> <version>
list [candidate]
use <candidate> <version>
config no qualifier
default <candidate> [version]
home <candidate> <version>
env [init|install|clear]
current [candidate]
upgrade [candidate]
version no qualifier
broadcast no qualifier
offline [enable|disable]
selfupdate [force]
update no qualifier
flush [tmp|broadcast|metadata|version]
EXAMPLES
sdk install java 17.0.0-tem
sdk help install
Step 2: Install latest stable version of micronaut by executing below command.
sdk install micronaut
Once the installation is successful, execute the below command from terminal.
mn --version
bash-3.2$ mn --version
Micronaut Version: 3.7.0
That’s it you are done with Micronaut CLI setup in your system.
References
https://micronaut.io/download/
No comments:
Post a Comment