skmtcdocs

skmtc logout

Delete the stored skmtc-hub credential (~/.skmtc/auth.json). Idempotent.

Synopsis

skmtc logout [--json]

Like doctor and clean, logout has no interactive Ink variant — it always runs headless.

Behavior

Deletes ~/.skmtc/auth.json and reports whether a file was removed. Running it again (or when never logged in) is a no-op that still exits 0. It touches only the stored file — --token flags and $SKMTC_HUB_TOKEN are the caller's to manage.

JSON output

{ "type": "logged-out", "removed": true }   // a credential was deleted
{ "type": "logged-out", "removed": false }  // nothing was stored — still exit 0

Exit codes

CodeMeaning
0Always (idempotent)

See also

  • login — store a credential

On this page