Here is a MicroProfile CLI Cheatsheet that can be used to kickstart your Microprofile projects.
First of all, we like to remind you that a Cloud Microprofile starter is available at this address: https://start.microprofile.io/
That is the simplest way to create a brand new Microprofile project for any runtime that supports it.
Anyway if you want to automate the process or adding some cool bash aliases to your environment, then you should check out the MicroProfile CLI. The Microprofile CLI enables you to generate applications with curl or PowerShell, without the distraction of opening a web browser
How to list the available Microprofile Versions in the starter:
curl https://start.microprofile.io/api/mpVersion ["MP30","MP22","MP21","MP20","MP14","MP13","MP12"]
How to list all available API Starters for all Runtime Environments in a specific Microprofile version:
curl https://start.microprofile.io/api/mpVersion/MP30 {"supportedServers":["LIBERTY","THORNTAIL_V2","HELIDON"],"specs":["CONFIG","FAULT_TOLERANCE","JWT_AUTH","METRICS","HEALTH_CHECKS","OPEN_API","OPEN_TRACING","REST_CLIENT"]}]
How to create a MicroProfile project for a specified Runtime environment (include all available API)
curl -O -J 'https://start.microprofile.io/api/project?supportedServer=THORNTAIL_V2'
How to create a MicroProfile project for a specified Runtime environment (include only a subset of API)
curl -O -J 'https://start.microprofile.io/api/project?supportedServer=THORNTAIL_V2&selectedSpecs=METRICS'
How to create a MicroProfile project setting all available options
$ curl -O -J -L 'https://start.microprofile.io/api/1/project?supportedServer=LIBERTY&groupId=com.example&artifactId=myapp&mpVersion=MP22&javaSEVersion=SE8&selectedSpecs=CONFIG&selectedSpecs=FAULT_TOLERANCE&selectedSpecs=JWT_AUTH&selectedSpecs=METRICS&selectedSpecs=HEALTH_CHECKS&selectedSpecs=OPEN_API&selectedSpecs=OPEN_TRACING&selectedSpecs=REST_CLIENT'