google-agents-cli-onboarding
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese[!TIP] One-Time Setup: To install the CLI and enable all 7 specialized development skills in your coding agent, run the setup command:bashuvx google-agents-cli setupAlternatively, to install only the expert skills and let the agent handle execution:bashnpx skills add google/agents-cli
[!提示] 一次性设置:如需安装CLI并在你的编码Agent中启用全部7项专业开发技能,请运行以下设置命令:bashuvx google-agents-cli setup或者,若仅需安装专家技能并让Agent处理执行流程:bashnpx skills add google/agents-cli
Overview
概述
This skill serves as the entrypoint for agents-cli — Google's toolkit for
building, evaluating, and deploying AI agents on the Gemini Enterprise Agent
Platform.
Use this skill to perform the initial setup and identify the correct specialized
workflows for your task.
本技能是agents-cli的入口——agents-cli是谷歌推出的工具包,用于在Gemini Enterprise Agent Platform上构建、评估和部署AI Agent。
使用本技能完成初始设置,并为你的任务确定合适的专业工作流。
The Agent Development Lifecycle
Agent开发生命周期
After running the setup, the following specialized skills become available and
will activate automatically based on your requests. Use this table to identify
which skill to load for your current phase:
| Phase | Specialized Skill | Purpose / When to Load |
|---|---|---|
| 0 — Understand | | Clarify intent. Define the agent spec in |
| 1 — Study | | Leverage samples. Study existing agent samples (e.g., |
| 2 — Scaffold | | Create/Enhance. Initialize the project structure, CI/CD, and infrastructure templates. |
| 3 — Build | | Implement. Write agent logic, tools, callbacks, and manage state using ADK APIs. |
| 4 — Evaluate | | Validate Quality. Run systematic evaluations (LLM-as-judge). |
| 5 — Deploy | | Go Production. Deploy to Agent Runtime (Vertex AI), Cloud Run, or GKE. |
| 6 — Publish | | Register. Make your agent available as a tool in Gemini Enterprise. |
| 7 — Observe | | Monitor. Set up Cloud Trace, prompt-response logging, and BigQuery analytics. |
运行设置后,以下专业技能将可用,并会根据你的请求自动激活。使用下表确定当前阶段应加载的技能:
| 阶段 | 专业技能 | 用途/加载时机 |
|---|---|---|
| 0 — 需求梳理 | | 明确意图:在编码前,在 |
| 1 — 参考学习 | | 参考示例:在搭建项目前,学习现有Agent示例(如 |
| 2 — 项目搭建 | | 创建/优化:初始化项目结构、CI/CD和基础设施模板。 |
| 3 — 开发构建 | | 功能实现:使用ADK API编写Agent逻辑、工具、回调函数并管理状态。 |
| 4 — 质量评估 | | 验证质量:运行系统性评估(LLM作为评判者)。 |
| 5 — 部署上线 | | 投入生产:部署至Agent Runtime(Vertex AI)、Cloud Run或GKE。 |
| 6 — 发布注册 | | 注册生效:让你的Agent在Gemini Enterprise中作为工具可用。 |
| 7 — 监控观测 | | 监控运维:设置Cloud Trace、提示-响应日志记录和BigQuery分析。 |
Key CLI Commands
核心CLI命令
Below are the primary commands you will use throughout the development
lifecycle:
| Command | Description |
|---|---|
| Install the CLI and configure skills in your coding agent. |
| Create a new agent project from a template. |
| Run the agent and grade the traces in a single step (generate + grade). |
| Deploy your agent to Google Cloud (Agent Runtime, Cloud Run, GKE). |
| Register your deployed agent with Gemini Enterprise. |
For the full list of available commands and global options, run .
agents-cli --help以下是开发生命周期中会用到的主要命令:
| 命令 | 描述 |
|---|---|
| 安装CLI并在你的编码Agent中配置技能。 |
| 从模板创建新的Agent项目。 |
| 运行Agent并一步完成轨迹评分(生成+评分)。 |
| 将Agent部署至谷歌云(Agent Runtime、Cloud Run、GKE)。 |
| 将已部署的Agent注册到Gemini Enterprise。 |
如需查看完整命令列表和全局选项,请运行。
agents-cli --helpNext Steps
后续步骤
Follow this sequence to initiate the development workflow:
- Execute Setup: Run the or
uvxcommand in thenpxbox above to install the CLI and enable the specialized skills in your environment.[!TIP] - Verify Installation: Run to confirm the installation and view the active project configuration.
agents-cli info - Initiate Phase 0: Ask the user for their core requirements (agent
purpose, external tools, deployment target) and document them in
before writing any code.
.agents-cli-spec.md
按照以下流程启动开发工作流:
- 执行设置:运行上方[!提示]框中的或
uvx命令,安装CLI并在你的环境中启用专业技能。npx - 验证安装:运行确认安装完成,并查看当前项目配置。
agents-cli info - 启动阶段0:询问用户核心需求(Agent用途、外部工具、部署目标),并在编写代码前将其记录在中。
.agents-cli-spec.md
Reporting Issues
问题反馈
Report bugs or improvements at Google Agents CLI Issues.
如需反馈bug或提出改进建议,请访问Google Agents CLI Issues。