Running CLI Applications

The seed-cli module provides support for creating applications that are run from the command-line, accepting options and arguments.

Command-line support requires the following dependency in your project:

Show version
dependencies {

The seed-cli dependency provides a launcher that will handle startup and shutdown logic of the command-line application.


The first application argument to determine the name of the command-line handler. Further arguments depend on the executed command.

Example of running myCommand with option1 as a capsule:

java -jar app-capsule.jar myCommand --option1

See how to define custom commands, on the next page.


On this page