My cursor-agent version is 2025.09.04-fc40cd1, also using the pre-release cycle of my Cursor Editor.
Over time, I’ve been using the shortcut cursor <pathname> or cursor . to open the editor directly in the workspace I’m in, but lately it just invokes the agent and starts the CLI in AI chat mode. I have tried looking around in the forums, and even the CLI help descriptions, but I can’t seem to find a way to open the editor directly. Right now, I am resorting to opening Cursor using Spotlight, then once it has loaded my previous workspace, I then have to open a new window and switch workspaces.
VS Code has always had the functionality to open a file/folder in the editor by running code <path>, and would love to have the same functionality on Cursor as well.
Steps to Reproduce
Open a terminal, run cursor .. It invokes the AI agent instead of opening the folder in the editor.
Expected Behavior
It should open the file/folder in the Cursor Editor window.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
I’d also like to add a workaround I’m using for now. This works only on macOS, but I’m sure the same idea can be replicated on other operating systems.
In my .zshrc file, I have this function:
function cursor() {
if [ -n "$1" ]; then
open -a Cursor $@
else
open -a Cursor
fi
}
This lets me run cursor <path/to/file/folder> just like before. But I would still appreciate the option to do it via the official CLI so that I can communicate the same to others in my team using Cursor, but not on macOS.