Skip to main content

CLI & Configuration

nexora [--config <file>] <command>
CommandWhat it does
nexora run -g "<goal>"Execute an intent and stream step results
nexora plan -g "<goal>"Dry run: show the DAG without executing anything
nexora capsList all registered capabilities
nexora pluginsList active plugins
nexora observeStart UI/API/metrics server for live process observability
nexora demoRun the built-in feature demo
nexora dlq listList dead letter queue entries (default: PENDING)
nexora dlq replay <id>Replay a dead-lettered execution
nexora dlq resolve <id>Mark a dead letter as resolved
nexora schedule addRegister a recurring cron-based execution
nexora schedule listList all schedules and their next fire time
nexora schedule remove <id>Cancel a schedule immediately

Pass -c '{"key":"value"}' to run to inject context values that steps can reference.

Config file

By default Nexora looks for nexora.json in the working directory. Point to a different one with --config.

{
"executionStore": "./nexora-data",
"steps": [
{
"id": "validate_order",
"capabilityId": "validate_order",
"matchesGoalContains": "order"
},
{
"id": "charge_card",
"capabilityId": "charge_card",
"matchesGoalContains": "payment"
}
],
"retry": {
"maxAttempts": 3,
"initialDelayMs": 200,
"multiplier": 2.0,
"maxDelayMs": 10000
}
}

A step is included in the plan when its matchesGoalContains string appears in the goal. Dependencies between steps are declared in code using StepDefinition's dependsOn set.

nexora schedule: Cron Scheduling

Requires a persistence store (executionStore in nexora.json or withExecutionStore(...) in code).

schedule add

nexora schedule add --goal "process payment" --cron "0 0 * * *"
nexora schedule add --goal "run report" --cron "0 9 * * 1-5" --policy FIRE_ONCE
OptionRequiredDefaultDescription
--goalYes,Intent goal string
--cronYes,5-field UNIX cron expression
--policyNoFIRE_ONCEMissed-fire policy: SKIP, FIRE_ONCE, FIRE_ALL

Prints the schedule ID and the calculated next fire time.

schedule list

nexora schedule list
nexora schedule list --active-only

Shows all schedules with their cron expression, next fire time, last fire time, policy, and active status.

schedule remove

nexora schedule remove <schedule-id>

Cancels future firings immediately. The schedule is marked inactive in the store but not deleted, so the audit record is preserved.