# google-agents-cli-publish

> Claude/Codex skill by [@google](https://github.com/google) · 6k stars · 571k installs · Updated 2026-09-16

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini Enterprise", "publish to Gemini Enterprise", or needs guidance on the agents-cli publish gemini-enterprise command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

Tags: adk, agent-development-kit, agents, coding-agent, gemini, gemini-enterprise-agent-platform, generative-ai, google-cloud

## Install

```sh
git clone https://github.com/google/agents-cli /tmp/agents-cli && ln -s /tmp/agents-cli/skills/google-agents-cli-publish ~/.claude/skills/google-agents-cli-publish
```

## From README

Gemini Enterprise Registration Requires: A deployed agent. For Agent Runtime, deploymentmetadata.json (created by agents-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 Enterprise app must exist — Create one in Google Cloud Console → Gemini Enterprise → Apps before registering deploymentmetadata.json (Agent Runtime only) — Created automatically by agents-cli deploy; contains the agent runtime ID, deployment target, the A2A flag, and the agent directory Required Permissions for A2A on Cloud Run roles/run.servicesInvoker granted to the Discovery Engine service account (service- @gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service. --- Registration Modes A2A Registration Every scaffolded agent serves the Agent-to-Agent protocol.

## Links

- HTML page: https://omgskills.com/library/google/agents-cli/google-agents-cli-publish/
- GitHub: https://github.com/google/agents-cli
- Author: [@google](https://github.com/google)

## More from this repo

- [google-agents-cli-adk-code](https://omgskills.com/library/google/agents-cli/google-agents-cli-adk-code/index.md) — This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a...
   - [@google](https://github.com/google) · 6.3k stars
