Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line runner for Micronaut

Tags:

micronaut

Is there a way to use Micronaut to create a command line application? I mean something similar to Spring Boot command line runner as described here: https://www.baeldung.com/spring-boot-console-app

There are still a lot of Micronaut features that are relevant to not just a server application but also a command line application.

like image 666
Mohammad Alinia Avatar asked Aug 23 '26 13:08

Mohammad Alinia


1 Answers

Is there a way to use Micronaut to create a command line application?

Yes. You can create a command line app using the create-cli-app command.

mn create-cli-app my-cli-app

See https://docs.micronaut.io/1.0.4/guide/index.html#commandLineApps for more information.

I hope that helps.

like image 89
Jeff Scott Brown Avatar answered Aug 26 '26 22:08

Jeff Scott Brown



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!