Building, Evaluating, and Deploying Agents with Google Agents CLI
Google Agents CLI 1.11
Scaffold, enhance, upgrade, evaluate, deploy, publish and observe ADK agents across the full Google Agents CLI lifecycle.
What is Google Agents CLI?
Google Agents CLI is a command-line tool that manages project files and lifecycle commands around an ADK agent. Its manifest is a configuration file that identifies the application and template settings. Creating a project, evaluating it, provisioning infrastructure and rolling out the application are separate operations with different inputs and checks.
Follow the docuctl-docs project from a prototype through a template update and evaluation traces. Inspect deployment preflight output before the cloud steps, then separate Gemini Enterprise registration from telemetry configuration. Local helper tests validate their stated rules; they do not provision services or prove deployed behavior.
What you'll learn
- Scaffold an ADK prototype with agents-cli scaffold create, keep App(name='app') aligned with agent_directory, pass agents-cli lint, and run multi-turn local sessions.
- Graduate a prototype in place with scaffold enhance, run 3-way template merges with scaffold upgrade, and add or override CLI commands with agents-cli-extension.yaml.
- Decouple trace collection (eval generate) from scoring (eval grade), synthesize multi-turn user simulations, cluster losses with eval analyze, and inspect result differences with eval compare and a separate regression gate.
- Provision Terraform infrastructure, inspect Agent Runtime preflight checks and Cloud Run command previews with deploy --dry-run, register ADK or A2A agents with publish gemini, and query two-tier BigQuery telemetry.
Lessons
Module 1 · 2 lessons · about 38 minScaffold, run, and extend agent projects
Create a prototype ADK project, run multi-turn sessions and A2A discovery locally, enhance with Terraform and CI/CD, and add project CLI extensions.
Scaffold, lint, and run an ADK project with Google Agents CLIRead
Scaffold a prototype ADK agent with agents-cli, inspect agents-cli-manifest.yaml, run agents-cli lint, and serve multi-turn ADK and A2A sessions locally.
Enhance, upgrade, and extend an Agents CLI projectRead
Add Cloud Run and CI/CD scaffolding in place with scaffold enhance, run 3-way template merges with scaffold upgrade, and wire agents-cli-extension.yaml.
Module 2 · 2 lessons · about 42 minEvaluate, simulate, and compare agent runs
Generate traces from single-turn and continued (N+1) cases, score with local custom metrics and distinguish model-based grading, synthesize user simulations, and compare baseline vs candidate runs.
Generate traces and grade evaluations with agents-cli evalRead
Author single-turn and continued-conversation datasets, generate ADK traces with agents-cli eval generate, and score custom metrics in eval grade.
Synthesize user simulations and compare evaluation runsRead
Generate simulated conversations, inspect failure groups and compare baseline and candidate evaluation runs with Google Agents CLI.
Module 3 · 2 lessons · about 42 minDeploy, publish, and observe on Google Cloud
Coordinate Terraform with agents-cli deploy, register ADK or A2A agents in Gemini Enterprise, and configure two-tier Cloud Trace, GCS, and BigQuery completion telemetry.
Provision Terraform infrastructure and deploy with agents-cliRead
Separate Terraform ownership from code rollouts. Inspect Agent Runtime preflight checks and Cloud Run command previews before deploying an agent.
Publish to Gemini and configure agent observabilityRead
Configure Gemini Enterprise agent registration, separate trace metadata from message payloads, and validate settings before checking delivery after deployment.
