opschain admin logout
Included from Basic tier
Removes the admin token opschain admin login stored for a server from the
CLI token store. The user login tokens are untouched — this is the admin
bearer's slot only.
Flags
| Flag | Meaning |
|---|---|
--server <url> | Server base URL whose stored admin token to remove (default: the active context / OPSCHAIN_SERVER). |
-q, --quiet suppresses the confirmation line.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Token removed. |
| 1 | The token store could not be opened or the delete failed. |
| 2 | Usage error — no server resolvable. |
Named errors
a server is required — pass --server <url>, set OPSCHAIN_SERVER, or 'opschain context use <name>'— no server anywhere (exit 2).
Examples
opschain admin logout --server https://ops.example.com
admin token removed for https://ops.example.com
See also
opschain docs cli/admin-login— store the token.