Skip to main content

Commands

This page groups the command surface by execution context and operational purpose.

Audience: User

Context: Use this as a structured reference after you already understand the host-versus-runtime split.

Host Commands

These commands run on the host and manage the runtime itself.

CommandPurposeNotes
caracal upStart PostgreSQL, Redis, and mcpMay pull or build images depending on compose file
caracal downStop the stackRemoves services and orphans
caracal resetStop the stack and remove volumesResets persistent container data
caracal purge --forceRemove all Caracal runtime resources and local stateDestructive
caracal logs -fTail runtime logsDefaults to mcp, postgres, and redis
caracal cliOpen restricted in-container CLIEnsures stack is up first
caracal flowLaunch FlowStarts the TUI session in the runtime

In-Container Command Groups

These groups are exposed by the operational CLI inside caracal cli.

GroupPurpose
workspaceCreate, list, switch, inspect, and delete workspaces
principalRegister and inspect principals
policyCreate and list authority policies
authorityIssue, validate, revoke, delegate, and graph mandates
delegationGenerate, list, validate, and revoke delegation tokens or relationships
providerAdd, list, test, and remove workspace providers
configRead and modify high-level runtime configuration surfaces
auditExport audit information and inspect workflow/command coverage
merkleManage Merkle keys, verification, export, and backfill
snapshotCreate, list, verify, and restore snapshots
allowlistManage resource allowlists
config-encryptEncrypt and decrypt config values
mcp-serviceStart or inspect the standalone MCP service
backup, db, migrateOperational maintenance tasks

Command Relationships

The most important operational dependency chain is:

  1. configure a workspace
  2. configure providers
  3. register principals
  4. create policies
  5. issue mandates
  6. validate or delegate authority

That order exists because later commands depend on data created by earlier ones.

Practical Usage

Common sequences:

caracal workspace create demo
caracal workspace use demo
caracal provider list
caracal principal list
caracal policy list
caracal authority list
caracal audit export
caracal merkle list-batches
caracal snapshot list
Advanced command families

Use these groups when you are operating beyond the initial authority lifecycle:

  • merkle for integrity verification, key rotation, and historical backfill
  • snapshot for recovery-oriented point-in-time state operations
  • db and migrate for schema and deployment migration work
  • mcp-service for the HTTP service that fronts MCP enforcement flows

Edge Cases And Constraints

  • Some command names in help text are aliased for UX. For example, the authority group exposes the issue command as mandate and validate as enforce.
  • Many commands are workspace-sensitive even when they do not require an explicit --workspace flag, because the active workspace is resolved implicitly.
  • Provider-scoped scope validation is enforced in policy and mandate commands. Invalid or unknown scopes fail before the operation is written.
AI tools
On this page