Documentation
CLI Reference
spark logout

spark logout

Remove credentials and end the current session.

Synopsis

spark logout

Description

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 logout

Log out and log back in

spark logout
spark login

This is useful if you need to switch accounts or re-authorize after a permissions change.

Verify you are logged out

spark whoami

After logging out, spark whoami will indicate that you are not authenticated.

Related commands