brew install flowlogix/tap/jstarter
Create a standards-based project from the command line
JStarter is a command-line tool that creates complete, testable Java and Jakarta EE
projects. Its jstarter command generates the same simple, batteries-included project as the
web starter. The generated application follows standard Java, Jakarta EE, and Maven
conventions. It is suitable as a starting point for any application from any developer or company, not just projects using Flow Logix products.
Use the CLI when you prefer a terminal workflow or want to create projects from
scripts. The starter server generates the project, and the CLI downloads and
unpacks it. The project comes with its pom.xml and the integrations you select
already configured, ready to build with the included Maven wrapper.
JStarter is open source, under the Apache License 2.0. Its source code is on GitHub.
Install the CLI
Choose the instructions for your platform:
The Homebrew, APT and Yum/DNF packages are native executables, which do not need Java to run. Generating a project needs access to the starter server, and building the generated project needs Java.
Supported platforms
| Platform | Native executable |
|---|---|
macOS |
Apple silicon (arm64) only. Intel (x64) Macs are not supported. |
Linux |
x64 and arm64, with glibc 2.34 or newer: Ubuntu 22.04+, Debian 12+, RHEL, Rocky Linux and AlmaLinux 9+, Amazon Linux 2023, or current Fedora. Older distributions, and those based on musl such as Alpine, are not supported. |
Windows |
x64 (packages are waiting for review, see Windows) |
macOS and Linux with Homebrew
Debian and Ubuntu
curl -fsSL https://dl.flowlogix.com/flowlogix.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/flowlogix.gpg
echo 'deb [signed-by=/etc/apt/keyrings/flowlogix.gpg] https://dl.flowlogix.com/apt/jstarter ./' | sudo tee /etc/apt/sources.list.d/jstarter.list
sudo apt update && sudo apt install -y jstarter
Fedora, RHEL, Rocky Linux, AlmaLinux and Amazon Linux
sudo curl -fsSL -o /etc/yum.repos.d/jstarter.repo https://dl.flowlogix.com/dnf/jstarter.repo
sudo dnf install -y jstarter
Windows
Use JBang for now. The winget and Chocolatey packages
have been submitted and are waiting for review.
Any platform with JBang
JBang runs the Java version of jstarter, on Java 25 or newer:
jbang app install jstarter@flowlogix
If jstarter is not found afterwards, run jbang app setup once and open a new terminal.
To update to a new release, run jbang --fresh jstarter@flowlogix --version.
SDKMAN!
|
Note
|
jstarter is not available from SDKMAN! yet, so sdk install jstarter does not work.
We are working on getting it listed. SDKMAN! gives new tools some time before listing them, so the
pull request to list it is closed for now.
If you use jstarter and would install it from SDKMAN!, please comment there on how you use it and on which platform.
|
Verify the installation
Display the available options and server-provided defaults:
jstarter --help
Generate a project
For example, create an inventory project for GlassFish under ~/projects:
jstarter \
--group com.acme \
--artifact inventory \
--baseType glassfish \
--output-dir ~/projects
The CLI creates ~/projects/inventory. Its next-step output shows how to verify
the generated project with ./mvnw verify.
The main options are:
-
-g, --groupsets the Maven group ID. The default iscom.example. -
-a, --artifactsets the Maven artifact ID and project directory name. The default isstarter. -
-p, --packagesets the base Java package. The default is the group and artifact, such ascom.acme.inventory. -
-o, --output-dirsets the parent directory for the generated project. The default is the current directory. -
--baseTypeand other archetype properties configure the generated project. Use--helpto display the current options and defaults.
Use --dry-run to inspect the equivalent curl request without generating a
project. Use --json to get the output directory and next command as JSON,
making it easier to integrate generation into scripts. With --dry-run, it also has
the commands that download and unpack the project.
Use --help --json to read the options and their defaults:
jstarter --help --json | jq -r .baseType.default