SPAPS CLI
The spaps command-line client connects to the hosted service. Use it to authenticate, inspect your
identity, verify configured credentials, and call authorized control-plane commands.
Verified public release: spaps 0.11.2.
Install And Connect
Inspect the installed version
npx spaps@0.11.2 --versionConfigure the hosted API
export SPAPS_API_URL=https://api.sweetpotato.dev
export SPAPS_API_KEY=spaps_sec_your_staging_key
export SPAPS_CLI_CLIENT_ID=your-staging-application-slugAuthenticate
npx spaps connect
npx spaps whoamiInspect connection configuration
npx spaps verify --jsonDevice login uses the application slug, not the application secret. Later server commands may
need the secret key. verify checks service health and whether a key is configured; use whoami
and a scoped API request to verify authenticated access.
Keep secret application keys in a secret manager or protected shell environment. Do not commit them, place them in browser configuration, or paste them into support messages.
Authentication Commands
| Command | Purpose |
|---|---|
spaps login / spaps connect | Start device-flow authentication |
spaps whoami | Read the authenticated identity |
spaps token | Print the current short-lived access token |
spaps logout | Attempt server revocation and clear local credentials |
spaps verify --json | Check reachability and local key configuration |
Login stores credentials in the OS keyring when available, with an encrypted file mirror at
~/.config/spaps/credentials.json (mode 0600). Check logout --json’s server_revoked result:
local cleanup alone does not prove server revocation. spaps token prints a bearer credential;
keep its output out of logs and support messages.
Authorized Control-Plane Commands
Availability depends on the capabilities granted to your application and user.
npx spaps dayrate config --json
npx spaps policy list --json
npx spaps webhook list --json
npx spaps issue-reports list-mine --status open --json