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