Agents CLI in Agent Platform: create to production in one CLI

Published: (May 18, 2026 at 08:07 PM EDT)
3 min read

Source: Google Developers Blog

Overview

AI agents are transitioning from experimental scripts to production services. While models get smarter, the infrastructure required to build, evaluate, and deploy them remains fragmented. Developers and their coding assistants often struggle with isolation, wasting time and tokens ingesting massive amounts of documentation just to bridge the local‑to‑cloud gap.

fragmented_gcp (1)

Today, we are thrilled to introduce Agents CLI in Agent Platform, the unified programmatic backbone for the Agent Development Lifecycle (ADLC) on Google Cloud.

Agents CLI is a specialized tool designed specifically for AI coding agents (like Gemini CLI, Claude Code, and Cursor). It gives your AI assistant a direct, machine‑readable line to the full Google Cloud agent stack (including Agent Platform, Cloud Run, and A2A Integration) turning a fragmented ecosystem into a seamless assembly line.

Build Agents with Agents

The biggest hurdle in agent development is context overload. When your coding agent has to guess how disparate cloud components fit together, it leads to endless loops and token waste.

With Agents CLI in Agent Platform, you simply run one command (uvx google-agents-cli) to inject bundled skills directly into your coding environment.

agents_cli_skills

# Installing the CLI
uvx google-agents-cli setup

You can also let your favorite coding agent invoke the CLI commands via Agents CLI Skills. For example, prompt your coding agent:

“I want to create a travel expense agent that can help me auto‑approve expenses under $50 and require HITL to approve anything over $50, or any expense that might look out of the norm.”

# Your coding agent seamlessly scaffolds the project using automatic defaults
agents-cli create finance-agent -y --deployment-target agent_runtime

# Move into the directory
cd finance-agent

Local Simulation and Rigorous Evaluation

Building the logic is only half the battle; ensuring it behaves correctly is the other. Before going live, developers need to know their agents meet accuracy thresholds.

Agents CLI can run rigorous evaluation harnesses. By using native commands, your coding assistant can orchestrate unit tests, validate data retrieval, and contrast different evaluation runs to guarantee quality.

# Run evaluations against your ground‑truth datasets
agents-cli eval run

# Compare the trajectory scoring and metrics of two runs
agents-cli eval compare evals/run_v1.json evals/run_v2.json

Seamless Deployment to Production

Going from a local prototype to a secure, globally distributed service shouldn’t take months. Agents CLI can automate the entire deployment phase. It injects Infrastructure as Code (IaC), sets up CI/CD pipelines, and deploys directly to Agent Runtime, Cloud Run, or GKE.

# Provision the production infrastructure
agents-cli infra single-project

# Ship the agent to Google Cloud
agents-cli deploy

# Register the deployed agent with Gemini Enterprise for distribution
agents-cli publish gemini-enterprise

Human Intent + Agent Execution

While the Agents CLI is optimized for agent consumption (Agent Mode), developers also need deterministic control. The CLI fully supports a Human Mode—you can run these commands directly in your terminal or scripts for immediate, deterministic execution, stepping in whenever you want to guide the “hands and eyes” of the AI.

agents_cli_lifecycle

What’s Next?

Get started today by downloading Agents CLI in Agent Platform and running uvx google-agents-cli in your terminal. Dive into our Documentation and the GitHub repository to see how your coding assistant can build the next generation of production‑grade AI.

0 views
Back to Blog

Related posts

Read more »

Google Tensor SDK Beta with LiteRT

Overview The Google Tensor ML SDK is graduating to its Beta phase, allowing developers to build and deploy high‑performance machine learning models directly on...