shc auth logout
shc auth logout
Section titled “shc auth logout”clear this machine’s stored tokens for a cluster (local only)
Synopsis
Section titled “Synopsis”Clear the OIDC tokens this machine stored for a cluster.
Local only. This does not end the Keycloak SSO session and does not revoke the token anywhere else: a copy of it elsewhere keeps working until it expires, and a browser on this machine stays signed in. That is deliberate: this verb has to work with no daemon, no network and no Keycloak, which is exactly the situation it is reached for.
To end someone’s sessions and revoke their issued tokens platform-wide,
use shc user logout <username>. To end your own browser session, use
the logout link on any gated app.
shc auth logout [cluster] [flags]Options
Section titled “Options” -h, --help help for logoutOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) -e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default") --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -s, --stack string stack name (default: $SHC_STACK) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc auth - authenticate the CLI against a cluster
shc@docs:~$