CLI

Ship code with agents

Right from your terminal.

Same commands, any environment.

Plug into your setup anywhere.
curl https://cursor.com/install -fsS | bash
Sunlit woodland background
Interactive demo showing agent. The interface is displayed over a scenic painted landscape wallpaper, giving the demo an artistic backdrop.

Always access the latest models

Frontier models from Anthropic, OpenAI, Gemini, Cursor, and more, at your fingertips.
Cursor Agent
~/cursor/cursor-web
/model Auto
/model Composer 1
/model Opus 4.5
/model GPT-5.2 Codex High Fast
/model Gemini 3 Pro
/model Grok

Use in your preferred IDE

Wherever you code, Cursor CLI integrates with your existing workflow.
Cursor CLI in multiple IDEs

Write powerful scripts and automations

Automatically update docs, trigger security reviews, or build custom coding agents.

Learn more

Get started with Cursor CLI

Installation guides, agents, and MCP integration.

Using Headless CLI

Use Cursor CLI in scripts and automation workflows.

Shell Mode

Run shell commands directly from agents with safety checks and output display.

GitHub Actions

Integrate Cursor CLI with GitHub Actions for automated CI/CD workflows.

Try Cursor CLI.

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