CLI Reference¶
Nemo is invoked from the command line. This page documents all available options.
Usage¶
Options¶
| Option | Short | Default | Description |
|---|---|---|---|
--app-config <PATH> |
-c |
app.xml |
Path to the main XML configuration file |
--app-config-dirs <DIR> |
-d |
Additional configuration directories to scan (repeatable) | |
--extension-dirs <DIR> |
-e |
Extension/plugin directories to load (repeatable) | |
--verbose |
-v |
Enable debug-level logging | |
--headless |
Run without opening a window | ||
--validate-only |
Parse and validate config, then exit | ||
--help |
-h |
Print help information | |
--version |
-V |
Print version |
Examples¶
Run an application¶
Run with verbose logging¶
Validate configuration without launching¶
This parses the XML file, checks for syntax errors and schema violations, then exits. Useful in CI pipelines or before deploying configuration changes.
Run in headless mode¶
Starts data sources and event handling without opening a window. Useful for background data processing or testing. Press Ctrl-C to stop.
Load additional config and extension directories¶
Multiple directories can be specified by repeating the flag. Config directories are scanned for additional XML files. Extension directories are scanned for .rhai scripts and native plugin libraries.
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success (including --validate-only with valid config) |
| 1 | Configuration error (parse, validation, or resolution failure) |
| 1 | Runtime error (failed to initialize subsystems) |
Environment¶
Nemo reads environment variables in XML expressions via the ${env.VARIABLE_NAME} syntax. No special environment variables are required by Nemo itself.
Logging¶
Nemo uses tracing for structured logging. Output goes to stderr.
- Default level:
INFO - With
--verbose:DEBUG
Log output includes thread IDs and module targets for troubleshooting: