spark logout
Remove credentials and end the current session.
Synopsis
spark logoutDescription
spark logout removes your stored authentication credentials and calls the server-side logout endpoint to invalidate the session. After logging out, you need to run spark login again to use authenticated commands.
The command removes tokens from wherever they are stored — the system keychain for standard logins, or .spark/settings.json for local logins. It also makes a server-side call to ensure the refresh token is revoked and cannot be reused.
Logging out does not remove your Spark configuration or IDE integrations. It only clears authentication state.
Arguments
This command has no arguments.
Flags
This command has no additional flags beyond global flags.
Examples
Log out
spark logoutLog out and log back in
spark logout
spark loginThis is useful if you need to switch accounts or re-authorize after a permissions change.
Verify you are logged out
spark whoamiAfter logging out, spark whoami will indicate that you are not authenticated.
Related commands
spark login— Authenticate with the Spark networkspark whoami— Check current authentication status- Global Flags — Flags available on all commands