Create-Cli-App

The create-cli-app command will generate a Micronaut command line application project, with optional flags to specify language, test framework, features, profile, and build tool. By default the project will have the picocli feature to support command line option parsing. The project will include a *Command class (based on the project name - e.g., hello-world will generate HelloWorldCommand), and an associated test which will instantiate the command and verify that it can parse command line options.

Once created, the application can be started using the *Command class, or the appropriate build tool task.

Starting a Gradle project

  1. $ ./gradlew run

Starting a Maven project

  1. $ ./mvnw mn:run