简体中文
开始使用 Cursor CLI,在终端中编写代码
# 安装 curl https://cursor.com/install -fsS | bash # 启动交互式会话 cursor-agent
# 启动交互式会话 cursor-agent # 从初始提示开始 cursor-agent "将 auth 模块重构为使用 JWT 令牌"
# 使用特定提示和模型运行 cursor-agent -p "find and fix performance issues" --model "gpt-5" # 连同 git 变更一并用于审查 cursor-agent -p "review these changes for security issues" --output-format text
# 列出所有历史对话 cursor-agent ls # 继续最近的一次对话 cursor-agent resume # 继续指定对话 cursor-agent --resume="chat-id-here"
此页面对您有帮助吗?