1.2 KiB
1.2 KiB
Cursor CLI Test Output
Date: $(date)
Script: scripts/test_cursor_cli.sh
Test 1: agent --version
2026.04.13-a9d7fb5
Test 2: agent -p "say hello in one word" --output-format stream-json --trust
- 需要 --trust 參數在非互動模式執行
- --force/-f 被團隊管理員禁用
- 執行後等待回應中 (可能需要較長時間初始化)
Test 3: agent --help (output-format 相關)
--output-format <format> Output format (only works with --print): text |
json | stream-json (default: "text")
--stream-partial-output Stream partial output as individual text deltas
(only works with --print and stream-json format)
(default: false)
Test 4: agent models (部分結果)
- auto (預設)
- composer-2-fast, composer-2, composer-1.5
- gpt-5.3-codex 系列 (low/normal/high/xhigh)
- claude-4-sonnet, claude-4.5-sonnet
- grok-4-20
- gemini-3-flash
- kimi-k2.5
結論
- Cursor CLI 已安裝且可用
- stream-json 需要配合 --print (-p) 和 --trust 使用
- 有 --stream-partial-output 可取得逐字串流
- 實際的 JSON 格式需要等待回應完成後才能解析