Appearance
sp config
Phase: v1
When agents use this: Once per session to verify connectivity; CI uses env vars instead of init.
Synopsis
Manage CLI profiles and backend URL.
Subcommands
| Subcommand | Description |
|---|---|
init | Create ~/.config/softprobe/config.yaml |
show | Print active profile and URL (masked token) |
set-url <url> | Set URL for current profile |
set-profile <name> | Switch active profile |
login | Alias for sp auth login |
Examples
bash
sp config init
sp config show --json
sp config set-url http://127.0.0.1:8090
sp config set-profile stagingJSON output (show)
json
{
"ok": true,
"command": "config show",
"data": {
"profile": "default",
"url": "http://127.0.0.1:8090",
"tokenConfigured": true
}
}REST mapping
Config subcommands are local only (no HTTP), except login → see auth.
Errors
| Code | Exit | Cause |
|---|---|---|
CONFIG_MISSING | 2 | No config file; run init |
PROFILE_NOT_FOUND | 2 | Unknown profile name |