Skip to content

Command reference ​

Every public sp command. Use --json on API-backed commands; see Output contract. sp --help and sp <command> --help list the same commands from the installed binary.

Install and set up ​

CommandSynopsis
versionPrint the CLI version. sp -v and sp --version do the same; sp version --json gives an envelope
setupPoint sp at a backend; optionally install the shared web workbench (Linux)
doctorCheck the backend, the workbench engine and the shared web workbench — see Install — check the installation
upgradeUpgrade the CLI, the Java agent and the workbench engine — see Install — upgrade
codeStart the workbench in the terminal, or sp code web in the browser — see Install — web workbench

Job-oriented commands that follow record-and-replay order:

CommandSynopsis
demostart, traffic, replay, status, stop — Travel OTA demo stack
agentdownload, command — install jar and JVM flags
recordcase list — recorded entry cases before replay
diagnosereplay, trace — bundled investigation workflows

Platform ​

Connect, authenticate, manage apps and policies, run replay plans.

CommandSynopsis
configProfiles, URL, init
authLogin, whoami, refresh
appList, create, agent status, recent replays
policyRecording, mock, compare YAML policies
replayRun, status, statistics, report, stop, rerun plans
healthCluster health
tenantSoftprobe Cloud: tenant API key for agents
tunnelSoftprobe Cloud: reverse tunnel so replays reach a service on your machine

Investigation ​

Recorded data, traces, and replay failures.

CommandSynopsis
recordQuery recordings and completeness
traceFind traces by business attributes
logsCorrelated logs by trace_id — see Concepts and IDs
replay caseList cases, metadata, mock tree
replay diffDiff artifacts, compare results
extraction-ruleBusiness attribute extraction rules

Investigation commands support --out-dir, --page, and --limit unless noted.

Administration ​

Groups, system config, diagnostics.

CommandSynopsis
groupUser groups and app grants
grantApp grant listing (grant list)
systemSystem config keys
opsStorage and schedule diagnostics

sp recorder and sp config legacy no longer exist; see sp logs — removed commands and sp config.

Global flags ​

text
--json          Machine-readable stdout (required for agents)
--profile       Config profile name
--api-url       Override backend URL
--token         Override JWT (else SP_TOKEN / config)
--config        Extra config file (JSONC overlay)
--quiet         Suppress non-error stderr
--out-dir       Directory for artifact files
--page          Page number (investigation list commands)
--limit         Page size / max items

Cheat sheet ​

bash
sp config init && sp auth login --email u@c.com --code 123456 --json
sp doctor --json
sp app create my-svc --json
curl -fsSL -o sp-agent.jar https://install.softprobe.ai/artifacts/agent/latest/sp-agent.jar
sp agent command --app <appId> --agent-jar ./sp-agent.jar --json   # copy startCommand into your run script
sp record case list --app <appId> --since -1h --json
sp replay run --app <appId> --env http://your-service:8080 --from -24h --json
sp replay status <planId> --watch --json
sp diagnose replay <planId> --out-dir .sp-work --json

Capture Sessions · Review Steps · Improve what matters