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

    Starting a Gradle project

    Starting a Maven project

      By default, create-cli-app will generate a Java application, with JUnit configured as the test framework. The language and test framework settings for a given project are stored as the testFramework and sourceLanguage properties in the micronaut-cli.yml file, as shown below:

      micronaut-cli.yml

      Groovy

      To create an app with Groovy & Spock support, supply the appropriate features via the lang and test flags:

      1. $ mn create-cli-app my-groovy-app --lang=groovy --test=spock

      This will include the Groovy & Spock dependencies in your project, and write the appropriates values in micronaut-cli.yml.

      Kotlin

      To create an app with Kotlin & KotlinTest support, supply the appropriate features via the lang and test flags:

      Build Tool

      By default create-cli-app will create a Gradle project, with a build.gradle file at the root of the project directory. To create an app using the Maven build tool, supply the appropriate option via the build flag: