跳到正文
Vercel Blog· Melkey Moksyakov·· 3 天前精选AI 评分75

Vercel CLI 支持智能体通过自然语言检索命令

Agents can now find Vercel CLI commands by describing the task

AI 导读

Vercel CLI 推出 `vercel help search` 功能,允许编程智能体通过自然语言描述任务检索对应的 CLI 命令与 API 端点。该功能支持通过 `--with-help` 附带首条结果的帮助文档,并可通过 `--json` 输出结构化数据以便智能体直接解析并补全请求参数。此外,新版 CLI 内置了引导智能体优先使用该搜索的技能,且官方不记录搜索文本。

推荐理由

让编程智能体通过自然语言检索 CLI 与 API 命令并获取结构化用法,降低了自动化开发工作流中的调用试错成本。

正文 · 原文

Coding agents can now use vercel help search to find Vercel CLI commands by describing a task in plain language.

The search returns a list of matching commands. Add --with-help to include the help page for the first result in the same call. For example, vercel help search "roll back production" --with-help returns the options and examples for vercel rollback.

Search also supports:

  • API endpoints: When a Vercel API endpoint matches the task, search returns a vercel api command with the request path and placeholders for every required input. The agent can fill in the values without guessing the path.

  • JSON output: Use --json to return search results as JSON. Combine it with --with-help to include usage instructions, options, and examples for the first result.

Search recognizes common wording, such as “show” instead of “list,” and handles minor spelling mistakes.

The CLI also includes a skill that tells coding agents to start with vercel help search when looking for a command. Vercel doesn't log your search text.

Update to the latest Vercel CLI with vercel upgrade.

来源:Vercel Blog · vercel.com

EVAOO 主站实战落地 · AI Agent 与研发提效

看完情报?回到 EVAOO 主站直接上手工具与完整 SOP

返回 EVAOO 主站