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 gcn

You can also specify the version to the sdk install command, for example:

sdk install gcn {project-version}

For more information about using SDKMAN!, see SDKMAN! Usage.

You should now be able to run the GDK CLI.

gcn
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
gcn>

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/gcn https://github.com/oracle/gcn

Then install the GDK CLI tool:

brew install gcn

For more information about using Homebrew, visit their homepage.

You should now be able to run the GDK CLI.

gcn
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
gcn>

Find all available commands by entering --help. Enter exit to leave the shell.

Other Platforms #

For other platforms, download the tool from GitHub releases.

Learn More #