Command reference ยท Cursor CLI
/logs
Shows the path to the current debug log file and copies it to the clipboard.
/logs is a slash command you enter within a running Cursor CLI session. It shows you the file path of the current session's debug log file and copies it to the clipboard at the same time.
Cursor continuously writes debug logs for every session. On shared machines, these logs have been stored separately per user since June 2026, so multiple accounts on the same host don't run into permission errors; the displayed path also stays visible on screen longer there.
So the command only gives you the path to the local log file โ it neither shows the content nor uploads the file anywhere. For a specific support request, it makes sense to supplement it with /copy-request-id, which instead copies the ID of the last request, or /about for version and system info.
โ WHEN TO USE IT?
Prepare a support request with the log file
/logs โ copy the path and attach it to a support ticket
Find your own log path on a shared machine without permission errors
Run /logs on a shared machine to get the user-specific log path
โ WHEN NOT TO?
You only need the last request ID, not the full log file
/logs provides the file path, not a single ID.
Better: use /copy-request-id for the last request ID
The log content should be shown directly in the terminal
/logs only copies the path, but doesn't show the file's content.
Better: open the file at the copied path manually, e.g. with an editor
SOURCES
- Cursor Docs โ Slash Commands โ cursor.com
MORE COMMANDS ยท Cursor CLI