
Google Agents Cli Publish
Once your ADK agent is deployed, this gets it registered with Gemini Enterprise so users can actually discover and invoke it. Handles both standard ADK registration (via reasoning engine ID) and A2A protocol agents (via agent card URL). The smart bit is auto-detection: if you have a deployment_metadata.json from agents-cli deploy, it reads your runtime ID, figures out whether you're using A2A, and constructs the card URL automatically. You still need to create the Gemini Enterprise app in Cloud Console first and pass its ID, but after that it's mostly flags or interactive prompts. Watch out for the SDK version issue with google-cloud-aiplatform 1.128.0 and earlier causing session errors post-registration.
- skills.sh installs
- 559.8K
- GitHub stars
- 6.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add google/agents-cli --skill google-agents-cli-publish --agent claude-codeInstalls into .claude/skills of the current project.
Files
Gemini Registration
Requires: A deployed agent. For Agent Runtime in Gemini platform,
deployment_metadata.json(created byagents-cli deploy) enables auto-detection. For Cloud Run or GKE, provide the agent card URL and flags directly.
Prerequisites
- Agent must be deployed — the agent must be running and reachable
- Gemini app must exist — Create one in the Google Cloud console before registering
deployment_metadata.json(Agent Runtime only) — Created automatically byagents-cli deploy; contains the Agent Runtime ID, deployment target, the A2A flag, and the agent directory- Text-based agent — Live/voice (bidi) agents are not supported by the Gemini app, which has no
/run_livetransport. Register a text-based agent instead.
Required Permissions for A2A on Cloud Run
roles/run.servicesInvokergranted to the Discovery Engine service account (service-<PROJECT_NUMBER>@gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service.
Registration Modes
A2A Registration
Sponsors
Details
- Repository
- github.com/google/agents-cli
- Categories
- DevOps & CI/CD, AI & Agent Building, Release Management, Debugging, CLI & Terminal
- First seen
- May 16, 2026