>_cli-install
Cu

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.

Install on macOS
curl https://cursor.com/install -fsS | bash
Other install methods
Homebrew
brew install --cask cursor-cli
Install on Windows
irm 'https://cursor.com/install?win32=true' | iex
Install on Linux
curl https://cursor.com/install -fsS | bash
Run it
cursor-agent
Verify the install
cursor-agent --version

Before 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.