简体中文
在终端里使用 Cursor CLI 开始编码
# 安装 curl https://cursor.com/install -fsS | bash # 运行交互式会话 cursor-agent
# 启动交互式会话 cursor-agent # 从初始提示开始 cursor-agent "refactor the auth module to use JWT tokens"
# 使用指定提示词和模型运行 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"
此页面对您有帮助吗?