Skip to content

Command reference

All non-interactive commands accept --json and --no-color. Errors return a non-zero exit code and, under --json, a JSON object with an error field.

Command Purpose
jorli / jorli chat Open the conversational interface.
jorli setup Initialize local state, install/upgrade both broker CLIs, optionally store an AI key interactively.
jorli setup brokers Install or version-check only kite and dhan.
jorli doctor Run local, broker, AI, database, kill-state, and worker checks.
jorli strategy list List immutable versions.
jorli strategy show <name-or-id> Show YAML and plain-language summary.
jorli strategy import <path> Validate and import YAML.
jorli strategy accept <name-or-id> Confirm rules before backtesting.
jorli strategy approve <name-or-id> Approve a successfully backtested version.
jorli backtest <strategy> --from <date> --to <date> [--broker kite|dhan] Run a deterministic backtest.
jorli research <strategy> --from <date> --to <date> [--broker kite|dhan] [--fast 10,20] [--slow 40,50] [--atr 1,1.5] [--folds 3] [--rolling] [--iterations 1000] [--seed 42] [--portfolio id,id] Retain bounded exploratory trials and independently validated research with full provenance.
jorli options analyze <strategy> --broker kite|dhan --spot <price> [--volatility 20] [--rate 6.5] Validate payoff/Greeks/settlement and require a broker basket-margin estimate.
jorli options stage <strategy> --broker kite|dhan --spot <price> [--account id] Persist a margin-verified group bound to the authenticated broker account.
jorli options groups / options transition <group> <action> Inspect or advance the audited protection-first coordinated-fill state machine.
jorli portfolio status Show shared capital, buffer, drawdown, exposures, concentration, and attribution.
jorli portfolio policy [set --capital N --buffer N ...] Inspect or update deterministic portfolio limits.
jorli portfolio attribute <broker-source-id> <strategy-id> --pnl N [--costs N] Idempotently record broker-confirmed realized P&L and costs.
jorli deploy <strategy> --mode shadow|live --broker kite|dhan [--capital INR] [--expires ISO-8601] [--yes] Create a broker/account/version-bound deployment; live creates a signed pending authorization.
jorli deploy activate <deployment> --yes Perform the separate activation step after rechecking signature, expiry, broker readiness, and account.
jorli status [--broker ...] Show deployments and positions.
jorli orders [--broker ...] List persisted order intents.
jorli orders confirm <intent> --yes Confirm one reviewed live entry or coordinated exit intent.
jorli positions [--broker ...] Show broker positions.
jorli backup [--output <path.jbak>] Create an online SQLite-consistent, integrity-checked, passphrase-authenticated encrypted backup. Passphrases use a secret prompt or JORLI_BACKUP_PASSPHRASE, never an argument.
jorli restore <path.jbak> --yes After kill, pausing deployments, and stopping the worker, authenticate/integrity-check the archive, create an encrypted safety backup, atomically restore, rerun migrations, and keep kill active.
jorli database check [--full] Run SQLite quick_check or the exhaustive integrity_check; unhealthy results return a non-zero exit.
jorli database migrations Show current/supported schema, applied migration history, and the explicit encrypted-restore rollback plan.
jorli support bundle [--output <path.zip>] Create an owner-only, redacted, bounded incident evidence archive with a per-entry SHA-256 manifest. Review it before sharing.
jorli drill configure <backup.jbak> [--days 7] Prove an encrypted archive now, store its passphrase in the OS credential store, and schedule isolated worker drills every 1–90 days.
jorli drill status / drill run Inspect persisted drill health or run the configured isolated restore/integrity proof now.
jorli clock status / clock check Inspect persisted NTP drift health or perform a fresh multi-source comparison; unsafe drift returns non-zero and blocks new live entries.
jorli calendar status [--broker ...] / calendar list [--year ...] Inspect current exchange/broker availability and the source/version-stamped official holiday set.
jorli calendar maintenance add ... / maintenance remove <id> Persist and audit a bounded all/Kite/Dhan broker-maintenance window that blocks new live entries while active.
jorli retention status / preview / apply --yes Preview or explicitly apply bounded candle-cache/log/generated-export retention; safety and audit evidence is preserved.
jorli audit export [--from ISO] [--to ISO] [--output path] Export the complete selected audit range as owner-only JSON with a canonical, independently verifiable SHA-256 chain.
jorli observe status / events / alerts Inspect durable worker metrics, trace-correlated structured events, and unacknowledged operational alerts.
jorli observe ack <alert-id> Acknowledge a remediated alert and append immutable acknowledgement evidence.
jorli update configure ... [--automatic] Configure the HTTPS signed-manifest trust root, paired install directory, and OS-keyring rollback secret.
jorli update status / check / apply --yes Inspect, verify/stage, or atomically apply a paired CLI/worker upgrade with authenticated database and binary rollback.
jorli worker configure --role primary|standby --lease <name> Enable authenticated fenced execution ownership for this paired host; both roles require reconciliation after promotion.
jorli worker status Show local/single-host or clustered holder, fencing token, readiness, expiry, refresh, and error state.
jorli export [--output <path>] Export operational financial state without config, conversations, or credentials.
jorli pause <deployment> / stop <deployment> Pause a deployment or archive it only after pending/open exposure is clear.
jorli kill --yes / kill --clear Cancel identifiable pending entries and activate kill; clear only after unresolved entries reconcile.
jorli worker run Run the independent strategy loop.
jorli-worker [--version] Native Generic Host for Windows Service Control Manager/systemd/launchd supervision; uses the same guarded worker and exclusive execution lock.
jorli dashboard Start the loopback API and Angular dashboard.
jorli stream status Show direct-stream credential presence and last connection/recovery health without revealing secrets.
jorli stream configure kite|dhan Interactively store a stream API key/client ID and access token in the native OS credential store.
jorli stream run kite|dhan --instrument <exchange:symbol> [--instrument ...] [--timeframe 1m|5m|15m|30m|60m] Run the broker market/order WebSockets, deterministic candle aggregation, checkpoints, and recovery loop.
jorli remote status Show pairing and last successful/error poll without revealing the device credential.
jorli remote pair --endpoint <https://deployment.convex.site> [--name <host>] Pair interactively with a verified Jorli account and store the random device credential in the OS secret store. For non-interactive setup, use JORLI_SESSION_TOKEN; tokens are rejected as command arguments.
jorli remote unpair Remove the local credential and remote configuration; also revoke the device from Jorli when retiring a host.

Interactive commands include /new, /strategies, /accept, /approve, /backtest, /report, /compare, /deploy, /status, /orders, /positions, /pause, /stop, /kill, /dashboard, /sample, /help, and /exit.