繁體中文
在終端機中開始使用 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"
這個頁面有幫助嗎?