17.1 Creating a Project
Creating a project is the primary usage of the CLI. There are two primary commands for creating new projects: create-app
and create-function
. Both of these commands will generate a project based upon an associated profile (which can be overridden), and will set the micronaut.application.name
configuration property in src/main/resources/application.yml
.
In addition, there are specialty commands for creating a “federation” of multiple Micronaut services (create-federation
) and for creating new profiles for the CLI (create-profile
).
Command | Description | Options | Example |
---|---|---|---|
| Creates a basic Micronaut application, using the |
|
|
| Creates a command-line Micronaut application, using the |
|
|
| Creates a Micronaut serverless function, using the |
|
|
| Creates a federation of Micronaut services with shared profile/features. |
|
|
| Creates a Micronaut profile |
|
|