CLI

与智能体一起发布代码

直接在终端中完成一切。

同一套命令,适用于任何环境。

随时无缝接入你现有的环境配置。
curl https://cursor.com/install -fsS | bash
Image
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 等提供的前沿模型,触手可及。
Agent
~/cursor/cursor-web
/model Auto
/model Composer 1.5
/model Opus 4.6
/model Codex 5.3 High Fast
/model Gemini 3 Pro
/model Grok

在你常用的 IDE 中使用

无论你在哪里写代码,Cursor CLI 都能融入你现有的工作流。
ImageImage
Cursor CLI in multiple IDEs

编写强大的脚本和自动化流程

自动更新文档、触发安全审查,或构建自定义代码智能体。
ImageImage

了解更多

开始使用 Cursor CLI

安装指南,以及智能体和 MCP 集成。

使用无头 CLI

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

Shell 模式

在通过安全检查后,由智能体直接运行 Shell 命令并显示输出。

GitHub Actions

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

试用 Cursor CLI。

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