Skip to content

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

SubcommandDescription
initCreate ~/.config/softprobe/config.yaml
showPrint active profile and URL (masked token)
set-url <url>Set URL for current profile
set-profile <name>Switch active profile
loginAlias 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 staging

JSON 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

CodeExitCause
CONFIG_MISSING2No config file; run init
PROFILE_NOT_FOUND2Unknown profile name