Command reference Β· Cursor CLI
/exit
Exits the current CLI session, identical to /quit.
/exit ends the current interactive session of the Cursor CLI (cursor-agent). You type the command into the prompt field without further arguments. In the official slash command reference, the description for /exit is identical to that for /quit: both are documented there simply as "Exit", so according to the doc there's no functional difference.
The reference doesn't mention options or arguments. After invoking it, the chat process ends and you land back at the normal terminal prompt.
If you want to continue working on the same session later, you can find it again via /resume β beforehand, a /rename is worthwhile so it stays recognizable in the list of recent chats.
π THE SAME TASK (βEXITβ) ON OTHER PLATFORMS
β WHEN TO USE IT?
End the session after finishing
After the last accepted commit, type /exit to leave the chat and return to the shell.
Exit out of terminal habit
Those used to exit from Unix terminals type /exit instead of /quit β according to the doc, identical behavior.
β WHEN NOT TO?
Mixing both commands indiscriminately
According to the reference, both /exit and /quit are described only as "Exit"; there's no documented difference.
Better: Use one of the two commands consistently.
SOURCES
- Cursor Docs β Slash Commands β cursor.com