Newshot

智能体现在可以通过描述任务来查找 Vercel CLI 命令

AI summary

编码智能体现在可以使用 vercel help search,通过用自然语言描述任务来查找 Vercel CLI 命令。搜索会返回匹配的命令列表,添加 --with-help 可在同一次调用中包含第一条结果的帮助页面。搜索还支持 Vercel API 端点匹配和 JSON 输出,能识别常见表述并处理轻微拼写错误;CLI 还包含一项技能,提示编码智能体在查找命令时先从 vercel help search 开始。

Translation(model translation, not the source's own text)

文章标题:Agents can now find Vercel CLI commands by describing the task

正文:

编程智能体现可通过用自然语言描述任务,使用 vercel help search 查找 Vercel CLI 命令。

搜索会返回匹配的命令列表。加上 --with-help 即可在同一次调用中附带第一条结果的帮助页面。例如,vercel help search "roll back production" --with-help 会返回 vercel rollback 的选项和示例。

搜索还支持:

  • API 端点:当某个 Vercel API 端点与任务匹配时,搜索会返回一条 vercel api 命令,其中包含请求路径以及每个必填输入的占位符。智能体可以直接填入取值,无需猜测路径。
  • JSON 输出:使用 --json 可将搜索结果以 JSON 形式返回。与 --with-help 结合使用,可附带第一条结果的用法说明、选项和示例。

搜索能识别常见措辞,例如用“show”代替“list”,并能处理轻微的拼写错误。

CLI 还包含一个 skill,用于提示编程智能体在查找命令时从 vercel help search 开始。Vercel 不会记录你的搜索文本。

使用 vercel upgrade 更新到最新版 Vercel CLI。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗