Command reference ยท Cursor CLI
/logout
Signs out of the current Cursor account.
/logout signs the CLI out of the currently signed-in Cursor account.
โ WHEN TO USE IT?
Remove the account on a shared machine
/logout โ before switching to a different Cursor account
โ WHEN NOT TO?
You just want to end the session briefly, not sign out of the account
/logout clears the login, requiring a fresh login flow afterward.
Better: Use /quit or /exit to just end the session
SOURCES
- Cursor Docs โ Slash Commands โ cursor.com