Command reference ยท Cursor CLI
agent logout
Signs the CLI out of your Cursor account and clears locally stored credentials.
agent logout signs the current CLI installation out and removes the locally stored credentials (by default from the macOS keychain; with AGENT_CLI_CREDENTIAL_STORE=file from an unencrypted file instead).
โ WHEN TO USE IT?
Switching accounts on a shared machine
agent logout โ then agent login with the other account
โ WHEN NOT TO?
You only want to check the auth status, not sign out
agent logout deletes the stored credentials immediately.
Better: Use agent status or agent whoami to just view the status
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com