Skip to main content
The canonic CLI (alias: can) is a thin transport adapter: it parses options, selects the output format, and dispatches to the same protocol-neutral core service that also backs the MCP server. No business logic lives in the CLI layer itself.

Global flags

FlagDescription
--json / -jEmit raw structured JSON instead of formatted text. Every capability command’s JSON output matches its MCP tool payload byte-for-byte.
--versionShow the canonic version and exit.

Bare canonic

Running canonic with no subcommand (and without --json) launches the interactive setup wizard. With --json and no subcommand, it exits with an error instead; interactive mode requires a terminal.

canonic overview

Show active metrics grouped by domain with plain-language sample questions: the recommended first command for a new user or agent, giving a scannable map of what’s askable before drilling into sl describe or query.
canonic overview
canonic overview --domain warehouse
FlagDescription
--domainFilter to a single domain (owning-source name).

Command groups

GroupPurpose
connectionManage source connections in canonic.yaml.
slSemantic layer: resolve, compile, describe.
mcpControl the local MCP daemon.
knowledgeSearch and author knowledge pages.
evalRun the local-model accuracy baseline harness.

Top-level commands

CommandPurpose
overviewShow active metrics grouped by domain with sample questions (documented above).
setupInteractive project setup wizard.
ingestReconcile configured sources into reviewable context diffs.
reviewInteractively review pending proposals.
applyBatch-apply pending proposals from a run directory.
queryResolve, compile, and execute a semantic query read-only.
sqlExecute a read-only SQL string on a named connection.
assertRun the accuracy harness over all loaded assertions (CI gate).
statusShow the current project root, config version, and local state.
reportShow event-log figures: counts, errors, latency, freshness.
completionGenerate a shell completion script.