[フレーム]

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:

<dependency>
 <groupId>org.seedstack.seed</groupId>
 <artifactId>seed-cli</artifactId>
 <version>3.15.1</version>
</dependency>
Specifying versions manually is error-prone, use dependency management instead. Show version
dependencies {
 compile("org.seedstack.seed:seed-cli:3.15.1")
}

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

Syntax

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


Edit

Keyboard shortcuts

? Show this help dialog
/ Focus the search field
Go to previous page
Go to next page
g d Go to documentation
g a Go to add-ons library
g g Go to guides list

Fetching components...

Component Version

AltStyle によって変換されたページ (->オリジナル) /