Install the Cursor CLI on macOS or Linux

getting started

// what it does

The one-line installer downloads the agent into ~/.local/share/cursor-agent/versions/<version> and symlinks it into ~/.local/bin under two names: cursor-agent (the original) and the shorter agent (what current docs use). Both point at the same binary, so cursor-agent ... and agent ... are interchangeable. WSL uses this same script; native Windows uses the PowerShell one-liner instead.

// shell

$ curl https://cursor.com/install -fsS | bash
$ cursor-agent --version

// gotcha

If you get "cursor-agent: command not found" right after installing, ~/.local/bin is not on your PATH yet — open a new terminal or add it (next entry). The CLI auto-updates by default, so you rarely re-run the installer.

// resources