Installing the Graal Development Kit for Micronaut Command Line Interface
The Graal Development Kit for Micronaut (GDK) Command Line Interface (CLI) is an optional but convenient way to create applications. The best way to install the GDK CLI on Unix systems is with SDKMAN! which greatly simplifies installing and managing multiple versions of the CLI.
Install with SDKMAN! #
Linux and macOS users can install the GDK CLI using SDKMAN!. Before installing, check if you have latest version of SDKMAN! installed. If not, run:
sdk update
To install the GDK CLI, run following command:
sdk install gdk
You can also specify the version to the sdk install
command, for example:
sdk install gdk {project-version}
For more information about using SDKMAN!, see SDKMAN! Usage.
You should now be able to run the GDK CLI.
gdk
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
gdk>
Find all available commands by entering --help
. Enter exit
to leave the shell.
Install with Homebrew (macOS) #
Setup the tap for the cask:
brew tap oracle/gdk https://github.com/oracle/gdk
Then install the GDK CLI tool:
brew install gdk
For more information about using Homebrew, visit their homepage.
You should now be able to run the GDK CLI.
gdk
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
gdk>
Find all available commands by entering --help
. Enter exit
to leave the shell.
Other Platforms #
For other platforms, download the tool from GitHub releases.