Cursor CLI --print 與 --force:腳本裡真的改檔案的做法2026年3月9日·4 min read用 -p/--print 非互動跑完任務輸出到終端,加上 --force 讓 Agent 直接改寫檔案。適合 CI、批次加 JSDoc、自動 code review。#cursor#cli#headless#automation#scripts