opschain logout
Included from Basic tier
Remove the stored access token — and any refresh token kept beside it — for
the targeted server, from the OS keychain or the $OPSCHAIN_HOME/credentials
file store (--no-keychain addresses the file store, matching how the
token was stored). When the target was resolved through the active context,
that context stops being the active one; the context entry itself is kept,
so a later opschain login or opschain context use restores it by name.
opschain logout
Logged out of https://opschain.example.com
Logging out with no token stored is not an error. A local-mode target is:
logout needs a server target — pass --server <url> or 'opschain context use <name>' first(exit 2).
Exit codes: 0 on success, 1 when the credential store fails, 2 for the usage error above.
See also
opschain docs cli/login— store a credential again.opschain docs cli/context— the context entry logout leaves in place.