Appearance
Configuration
Config file location
| Priority | Source |
|---|---|
| 1 | --config flag |
| 2 | SP_CONFIG environment variable |
| 3 | ~/.config/softprobe/config.yaml |
Example file
yaml
current-profile: default
profiles:
default:
url: http://127.0.0.1:8090
token: "" # optional; prefer SP_TOKEN in CI
staging:
url: https://sp-staging.example.com
token: ""
prod:
url: https://sp.example.com
# token omitted — use SP_TOKEN from secret managerEnvironment overrides
| Variable | Overrides |
|---|---|
SP_API_URL | Profile url |
SP_TOKEN | Profile token |
SP_PROFILE | Active profile name |
CLI flags take precedence over environment:
bash
sp --api-url http://localhost:8090 --profile staging app list --jsonCommands
| Command | Action |
|---|---|
sp config init | Create default config file |
sp config show | Print resolved URL and profile (mask token) |
sp config set-url <url> | Update current profile URL |
sp config set-profile <name> | Switch profile |
TLS and proxies
- Use
https://URLs in production profiles. - Standard Go
HTTP_PROXY/HTTPS_PROXYapply to the CLI HTTP client. - Custom CA bundles: implementer may support
SP_CA_FILE(optional future flag).
Security
- File mode
0600recommended for config containing tokens. - Prefer
SP_TOKENin CI over writing tokens to disk. sp config showmust never print full token — onlytoken: ***or last four characters.