CLI

使用 Agent 交付代码

直接在您的终端中使用。

相同命令,任何环境。

随时随地接入您的开发环境。
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.

始终访问最新模型

来自 Anthropic、OpenAI、Gemini、Cursor 等的前沿模型,触手可及。
Cursor Agent
~/cursor/cursor-web
/model Auto
/model Composer 1
/model Opus 4.6
/model GPT-5.2 Codex High Fast
/model Gemini 3 Pro
/model Grok

在您偏好的 IDE 中使用

无论您在何处编写代码,Cursor CLI 都能与您现有的工作流程集成。
Cursor CLI in multiple IDEs

编写强大的脚本和自动化

自动更新文档、触发安全审查或构建自定义编码代理。

了解更多

开始使用 Cursor CLI

安装指南、Agent 和 MCP 集成。

使用 Headless CLI

在脚本和自动化工作流中使用 Cursor CLI。

Shell 模式

通过代理直接运行 shell 命令,具备安全检查和输出显示功能。

GitHub Actions

将 Cursor CLI 与 GitHub Actions 集成,实现自动化 CI/CD 工作流程。

试用 Cursor CLI。

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