Skip to main content

CLI Reference

This page is the exhaustive command and flag reference for syndicate.

Normative source: cli_command_reference.md (entire document), with cross-checks against syndicatecode-docs-site-spec.md §4.25.

Global invocation model

Usage:

syndicate [global-flags] [command] [subcommand] [args] [flags]

Global flags:

FlagTypeDefaultDescription
--workspace <path>stringcurrent working directoryWorkspace root directory
--config <path>stringimplementation defaultOverride config file path
--session <id>stringnoneScope command to a session where applicable
--output <format>enumtexttext, json, ndjson, table
--verboseboolfalseEmit additional diagnostics
--quietboolfalseSuppress informational output
--no-colorboolfalseDisable styled text output
--no-tuiboolfalseForce non-interactive mode

syndicate (bare invocation)

Launches the TUI and begins or resumes a session.

Usage:

syndicate [--session <id>] [--workspace <path>] [--policy <bundle-path>]

Examples:

syndicate
syndicate --workspace /path/to/repo
syndicate --session 63d5e4f8-17a8-4f62-9568-16f299ec8bc8

syndicate session

Session lifecycle management.

Usage:

syndicate session list [--all]
syndicate session attach <session-id>
syndicate session terminate <session-id> [--force]
syndicate session inspect <session-id>
syndicate session export <session-id> --format json|ndjson [--out <path>]

Flags:

FlagTypeDefaultDescription
--allboolfalseInclude terminal session states in list
--forceboolfalseSkip confirmation for terminate
--formatenumrequired for exportjson or ndjson
--out <path>stringstdoutWrite export to a file

Examples:

syndicate session list
syndicate session inspect 63d5e4f8-17a8-4f62-9568-16f299ec8bc8
syndicate session export 63d5e4f8-17a8-4f62-9568-16f299ec8bc8 --format ndjson --out session.ndjson

syndicate run

Primary workflow entry point for TUI and headless execution.

Usage:

syndicate run <workflow-name> [flags]

Flags:

FlagTypeDefaultDescription
--objective "<text>"stringnoneWorkflow objective submitted as proposal
--specialist <id>stringnoneInvoke a specific registered specialist
`--autonomy interactivesupervisedbounded`enum
`--checkpoint alwayspolicynever`enum
--dry-runboolfalseRun stages 1-3 only (proposal, canonicalization, policy evaluation)
--no-tuiboolfalseForce non-interactive mode
`--output jsontexttable`enum
--timeout <duration>durationimplementation defaultMaximum wall-clock runtime

Exit codes:

CodeMeaning
0Workflow completed successfully
1Workflow failed (execution error)
2Workflow denied (policy or approval denial)
3Workflow interrupted (operator or timeout)
4Dry run completed and would be denied
5Control plane unavailable

Examples:

syndicate run build-fix --objective "stabilize flaky unit tests"
syndicate run repo-update --no-tui --output json --objective "summarize dependency drift"
syndicate run lint-pass --dry-run --objective "evaluate write scope for formatting"

syndicate approve

Approval operations outside the TUI.

Usage:

syndicate approve list [--session <id>] [--status pending|expired|all] [--output json|ndjson|table]
syndicate approve show <proposal-id>
syndicate approve grant <proposal-id> [--reason "<text>"]
syndicate approve deny <proposal-id> [--reason "<text>"]

Examples:

syndicate approve list --status pending
syndicate approve show c0dd5f76-3f8c-4e64-b1e2-843f44f69368
syndicate approve grant c0dd5f76-3f8c-4e64-b1e2-843f44f69368 --reason "scope verified"

syndicate policy

Policy validation, application, diffing, history, and rollback.

Usage:

syndicate policy show [--format json|yaml] [--version <v>]
syndicate policy validate <policy-file>
syndicate policy apply <policy-file> [--dry-run]
syndicate policy diff <policy-file>
syndicate policy history [--limit N]
syndicate policy rollback <version>

Examples:

syndicate policy validate ./policy/prod.yaml
syndicate policy apply ./policy/prod.yaml --dry-run
syndicate policy rollback 2026.03.1

syndicate provider

Provider registry operations.

Usage:

syndicate provider list [--class local|approved_hosted|restricted_hosted|blocked] [--output json|table]
syndicate provider show <provider-id>
syndicate provider add [--workspace <path>] [--wire-format openai|anthropic] <url>
syndicate provider register <config-file>
syndicate provider remove <provider-id>
syndicate provider test <provider-id>
syndicate provider capabilities <provider-id>

Examples:

syndicate provider list --output table
syndicate provider test local-ollama
syndicate provider capabilities local-ollama

syndicate audit

Audit-chain query, replay, verification, and export.

Usage:

syndicate audit log [--session <id>] [--since <rfc3339>] [--until <rfc3339>] [--limit <n>] [--event-type <type>] [--actor <identity>] [--output json|ndjson|table]
syndicate audit show <event-id>
syndicate audit replay <session-id> [--stage proposal|canonicalization|policy|approval|execution] [--output json|ndjson]
syndicate audit verify [--cross-session] [--from-export <file>] [--output json|text]
syndicate audit export <session-id> [--out <path>] [--format json|ndjson]

Examples:

syndicate audit verify --cross-session
syndicate audit export 63d5e4f8-17a8-4f62-9568-16f299ec8bc8 --format ndjson --out audit.ndjson

syndicate specialist

Specialist registry management.

Usage:

syndicate specialist list [--status pending|active|suspended|revoked|all] [--output json|table]
syndicate specialist show <specialist-id>
syndicate specialist register <definition-file>
syndicate specialist revoke <specialist-id> --reason "<text>"
syndicate specialist diff <specialist-id> <definition-file>
syndicate specialist history <specialist-id>

Examples:

syndicate specialist list --output table
syndicate specialist register ./specialists/reviewer.yaml
syndicate specialist revoke reviewer.v3 --reason "scope replaced"

syndicate mcp

MCP endpoint registration and validation.

Usage:

syndicate mcp list
syndicate mcp add <name> --url <url> [--transport sse|stdio] [--trust-tier 0|1|2|3] [--capability-declaration <file>]
syndicate mcp remove <name>
syndicate mcp show <name>
syndicate mcp test <name>

Examples:

syndicate mcp add filesystem --url http://localhost:5050 --transport sse --trust-tier 0 --capability-declaration ./mcp/filesystem.yaml
syndicate mcp test filesystem

syndicate permit

Permit inspection and revocation.

Usage:

syndicate permit list [--session <id>] [--status issued|active|consumed|expired|revoked|all] [--output json|table]
syndicate permit show <permit-id>
syndicate permit revoke <permit-id> --reason "<text>"

Examples:

syndicate permit list --session 63d5e4f8-17a8-4f62-9568-16f299ec8bc8
syndicate permit revoke 4dbd41aa-545f-46e0-94a2-46cf782f1d39 --reason "scope changed"

syndicate trust

Trust-boundary management operations.

Usage:

syndicate trust list [--output json|table]
syndicate trust grant <boundary-id> [--reason "<text>"]
syndicate trust revoke <boundary-id> --reason "<text>"

Arguments:

ArgumentDescription
<boundary-id>Trust boundary identifier. Format varies by boundary type: <specialist-id> for specialist trust, <server-identity>/<tool-name> for MCP tool trust, <path-scope> for path-scope trust

Flags:

FlagTypeDefaultDescription
--outputenumtableOutput format: json, table
--reasonstringrequired for revokeOperator-provided reason for trust change

Subcommands:

  • trust list — List all trust boundaries with current tier, confidence score, last-evidence timestamp, and boundary type
  • trust grant <boundary-id> — Elevate a boundary's trust tier. Emits a trust-grant audit event.
  • trust revoke <boundary-id> — Revoke trust for a boundary, resetting it to untrusted. Immediate effect. The --reason flag is mandatory. All active permits dependent on the revoked boundary are invalidated.

Examples:

syndicate trust list --output table
syndicate trust grant filesystem/write-file
syndicate trust revoke filesystem/write-file --reason "scope violation detected"

syndicate config

Local operator preferences (separate from policy).

Usage:

syndicate config show
syndicate config set <key> <value>
syndicate config unset <key>
syndicate config init [--workspace <path>]

Examples:

syndicate config set output.format json
syndicate config init --workspace /path/to/repo

syndicate completion

Shell completion generation.

Usage:

syndicate completion bash
syndicate completion zsh
syndicate completion fish
syndicate completion powershell

syndicate version

Version output.

Usage:

syndicate --version

Expected fields: semantic version, commit hash, build timestamp, and release channel (cli_command_reference.md §15.4).

Common exit codes

Consistent exit-code contract across commands:

CodeMeaning
0Success
1General execution error
2Denied by policy or approval decision
3Interrupted (operator action or timeout)
4Dry run would be denied
5Control plane unavailable
6Authentication or identity failure
7Validation failure
8Not found