Installing the Graal Cloud Native CLI

The Graal Cloud Native (GCN) Command Line Interface (CLI) is an optional but convenient way to create GCN applications. The best way to install the GCN 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 GCN CLI using SDKMAN!. Before installing, check if you have latest version of SDKMAN! installed. If not, run:

sdk update

To install the GCN 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 GCN 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 GCN CLI tool:

brew install gcn

For more information about using Homebrew, visit their homepage.

You should now be able to run the GCN 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 #