Command reference ยท Cursor CLI
/open
Opens the current repo's Git root directory in the Cursor editor.
/open opens the Git root directory of your current repository in Cursor, the editor. According to the docs, /cursor is also available as an alias for the same command โ both spellings do the same thing.
The command requires you to be in a Git repository, because it orients itself by the Git root, and that Cursor is installed locally as an editor, so there's actually something to open. Typically you use /open when you're running a CLI session in the terminal but want to continue visually after finishing the work โ for example to check changes in the diff view or edit files directly instead of tracing every change individually in the terminal.
โ WHEN TO USE IT?
Continue visually after CLI work
/open โ after the agent has proposed the changes
Continue editing a specific file in the editor
/open, to manually refine a file changed by the agent directly in the Cursor editor
โ WHEN NOT TO?
Cursor (the editor) isn't installed or wanted at all
/open requires a local Cursor installation.
Better: check changes directly in the terminal instead, e.g. with git diff
No Git repository present
According to the docs, /open opens the repository's Git root directory โ without a Git repo there's no Git root to open.
Better: open the folder manually in the editor or stay in the normal terminal workflow
SOURCES
- Cursor Docs โ Slash Commands โ cursor.com