Mojara CLI: develop applications
Use the mojara command to create and run applications. Mojara manages its toolchain and project dependencies for you.
Create an application
Start a new web application:
mojara new hello-world web
cd hello-world
mojara dev
new uses the existing Mojo project generator to produce a starter. The dev command prepares project dependencies if necessary and launches the development supervisor. On successful compilation it displays the local server URL.
Build and start
mojara build
mojara start
Use these commands from the generated application's directory.
Developer commands
| Command | Purpose |
|---|---|
| `mojara new NAME [web | api]` |
mojara dev |
Run the development server |
mojara build |
Compile the application |
mojara start |
Start a compiled application |
mojara test |
Run application tests |
mojara doctor |
Check installed toolchain and SDK |
mojara --help |
Display CLI usage |
What happens behind the scenes?
The CLI manages the compiler environment automatically, so everyday application commands use mojara.
Read the first application guide after installing the verified CLI distribution.