Install and use Cursor shell commands
cursor
and code
commands to integrate Cursor with your development workflow.
Install 'cursor' to shell
Install 'code' to shell
cursor file.js
cursor ./my-project
cursor file1.js file2.js folder1/
cursor -n
or cursor --new-window
cursor -w
or cursor --wait
What's the difference between cursor and code commands?
code
command is provided for VS Code compatibility.Do I need to install both commands?
Where are the commands installed?
.bashrc
, .zshrc
, or .config/fish/config.fish
).