Command-line interface
When you use the Javelit fat jar — a jar that contains javelit and all its dependencies packaged together — a command-line (CLI) tool is available. The purpose of this tool is to run Javelit apps, change Javelit configuration options, and help you diagnose and fix issues.
Available commands
javelit --help
: Show the available CLI commands.javelit run
: Run your Javelit app.javelit --version
: Show the version of Javelit.
Run your app
The most important command is javelit run
, which is summarized for convenience here:
javelit run YourApp.java
At any time, in your terminal, you can stop the server with Ctrl+C.
Still have questions?
Go to our discussions forum for helpful information and advice from Javelit experts.