Install Cursor CLI
Cursor's coding agent, headless in your terminal
Cursor CLI runs the Cursor agent outside the editor — in your terminal, your scripts, and CI pipelines — with the same models and tools as the Cursor app.
curl https://cursor.com/install -fsS | bashOther install methods
brew install --cask cursor-cliirm 'https://cursor.com/install?win32=true' | iexcurl https://cursor.com/install -fsS | bashcursor-agentcursor-agent --versionBefore you start
On Windows, Git for Windows (Git Bash) is recommended. If the command isn't found after install, add ~/.local/bin to your PATH.
Official documentation: Cursor CLI docs
Frequently asked questions
What is the command called?
The agent runs as cursor-agent. Recent builds also expose it as agent; the installer keeps the cursor-agent name working.
Does it work on native Windows?
Yes, via the PowerShell installer. Git for Windows (Git Bash) is recommended; WSL also works.
Do I need a Cursor account?
Yes — you authenticate with your Cursor account on first run.
Cursor is a trademark of Anysphere, Inc. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.