8.0
热点
AI SCORE
编程提效2026-08-21 02:03
Vercel CLI 新增 Toolbar 评论管理功能
Vercel Blog#Vercel#CLI#开发者工具
Editor brief · 编辑速览
Vercel CLI 现支持列出、查看、回复、解决、编辑和删除 Toolbar 评论,可接入脚本和 AI Agent 自动化工作流。
现在你可以使用 Vercel CLI 来管理 Vercel Toolbar 评论。vercel comments 覆盖了完整的评论处理流程:
列出并筛选当前 Git 分支关联项目中的未解决评论
查看完整的评论串,包含每条消息及其 ID
在终端中回复、标记已解决、重新打开、编辑或删除
--format json 输出,方便脚本和 Agent 调用
先列出当前分支中所有未解决的评论:
$ vercel comments
Comments in my-project · feat/checkout
● icZ9BnPPINuK 3h Ana Ruiz /checkout "The promo code field loses focus after applying a discount" → 4 replies · Maria, v0 (app) · last 20m ago
1 unresolved comment
To read a thread, run `vercel comments inspect <id>`
深入查看某个具体的评论串:
$ vercel comments inspect icZ9BnPPINuK
icZ9BnPPINuK · unresolved · feat/checkout
/checkout — "Acme Site — Checkout"
Element: body > main > form > div.promo-container
Ana Ruiz · 3h ago · 9V777h5b5B56aYUUk12jb
The promo code field loses focus after applying a discount
Maria · 3h ago · JEcplTszDY1Gme8cs7DK6
Let me check that out real quick...
回复、标记已解决、编辑:
$ vercel comments reply icZ9BnPPINuK -m "Fixed in the latest push, focus now persists on re-render."
$ vercel comments resolve icZ9BnPPINuK -m "Shipping this. Reopen if it regresses."
$ vercel comments edit icZ9BnPPINuK VvkhYF6dTqbpm7K -m "Fixed on preview, verifying on staging."
升级到最新版 Vercel CLI,然后运行 vercel comments。或者直接告诉你的 Coding Agent:
处理我在网站上留的评论。先运行
vercel comments开始,然后用vercel comments --help了解如何与它们交互。确保vercelCLI 是最新版本。
更多内容请参阅 comments CLI 文档。