Appearance
Commands (v1)
Platform control commands — first implementation priority for the public CLI.
| Command | Phase | Synopsis |
|---|---|---|
| config | v1 | Profiles, URL, init |
| auth | v1 | Login, whoami, refresh |
| app | v1 | List/create apps, agent status |
| policy | v1 | Recording, mock, compare YAML policies |
| replay | v1 | Run, status, stop, rerun |
| health | v1 | Cluster health |
Global flags on all API commands:
text
--json Machine-readable stdout (required for agents)
--profile Config profile name
--api-url Override backend URL
--token Override JWT (else SP_TOKEN / config)
--quiet Suppress non-error stderr
--out-dir Directory for artifact filesCheat sheet
bash
sp config init && sp auth login --email u@c.com --code 123456 --json
sp app list --json
sp policy recording validate -f rec.yaml --json
sp policy recording apply -f rec.yaml --json
sp replay run --app my-app --env staging --from -24h --json
sp replay status <planId> --watch --json
sp health --jsonInvestigation commands are v2: Commands (v2).