List all available features in the Micronaut CLI (mn)

In the Micronaut CLI mn, we can use mn create-app --list-features to list all available features.

Table of Contents

P.S. Tested with Micronaut 4.7.6

1. List All Feature

Terminal

mn create-app --list-features

This will output a categorized list of features like:

Terminal

$ mn create-app --list-features

Available Features
(+) denotes the feature is included by default
  Name                                                    Description
  ------------------------------------------------------  ---------------
  API
  annotation-api                                          Adds Jakarta annotations API dependency. For example, to use @PostConstruct or @PreDestroy
  graphql                                                 Adds support for GraphQL
  jackson-databind                                        Adds Jackson Databind to a Micronaut Application
  json-schema                                             Adds JSON Schema to a Micronaut Application
  json-schema-validation                                  Adds JSON Schema Validation to a Micronaut Application
  micronaut-aop                                           Adds support for Micronaut Aspect-Oriented Programming (AOP) API
  openapi                                                 Adds support for OpenAPI (Swagger)
  openapi-adoc                                            Adds and enables document conversion to AsciiDoc
  #...

  Cache
  cache-caffeine                                          Adds support for caching using Caffeine
  cache-coherence                                         Adds support for caching using Coherence
  cache-ehcache                                           Adds support for caching using EHCache
  cache-hazelcast                                         Adds support for caching using Hazelcast
  cache-infinispan                                        Adds support for caching using Infinispan
  
  #...
  
  Logging
  amazon-cloudwatch-logging                               Provides integration with Amazon CloudWatch Logs
  azure-logging                                           Provides integration with Azure Monitor Logs
  gcp-logging                                             Provides integration with Google Cloud Logging
  jul-to-slf4j                                            Java Util Logging bridge for SLF4J with Logback.
  liquibase-slf4j                                         An implementation of the Liquibase logger that delegates directly to SLF4J
  log4j2                                                  Adds Log4j 2 Logging
  logback (+)                                             Adds Logback Logging
  oracle-cloud-logging                                    Provides integration with the Oracle Cloud Logging service
  slf4j-simple                                            Adds SLF4J Simple Logging through simplelogger.properties
  slf4j-simple-logger                                     Logger for applications in single-thread contexts.
   
  #...

2. Filter Features

We can pipe the grep command to filter the feature by category

Terminal

mn create-app --list-features | grep -i security

  Security
  amazon-cognito                                          Applies Micronaut Security OAuth 2.0 and provides configuration. Can be used in combination with 'aws-cdk' to generate a Cognito User Pool with a OAuth 2.0 application.
  security                                                Adds a full featured and customizable security solution
  security-csrf                                           Adds Cross Site Request Forgery (CSRF) mitigation APIs
  security-jwt                                            Adds support for JWT (JSON Web Token) based Authentication
  security-ldap                                           Adds support for authentication with LDAP servers
  security-oauth2                                         Adds support for authentication with OAuth 2.0 providers
  security-session                                        Adds support for Session based Authentication

3. Download Source Code

4. References

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments