Skip to main content
Version: v5.7.0

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​

FlagMeaning
--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​

CodeMeaning
0Token removed.
1The token store could not be opened or the delete failed.
2Usage 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.