Skip to content

Commands (v2)

Investigation, diagnosis, and console parity — primary surface for AI agents after v1 platform commands.

CommandSynopsis
recordQuery recorded data, traces, logs
traceFind traces by business attributes
replay-caseList cases, metadata, failed items
replay-diffDiff detail, compare, replay logs
workspaceFilesystem cases and interfaces
extraction-ruleBusiness attribute extraction rules
groupUser groups and app grants
config-legacyLegacy /api/config/* CRUD (deprecated)
systemSystem config and scheduled tasks
opsStorage/schedule diagnostics

All v2 commands support --json, --out-dir, --page, --limit unless noted.

Agent diagnosis pipeline

text
sp app list
  → sp replay list / sp app replays
  → sp replay case list --plan <id> --failed
  → sp replay diff get <diffId> --out-dir .sp-work
  → (optional) sp record logs download --trace-id <id>

Or when user gives business ID:

text
sp trace find --app <id> --attr-name orderId --attr-value ORD-123
  → sp trace get <traceId>
  → sp record query --trace <traceId>

See examples.