DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to deploy an agent to Google Cloud with CI/CD with Agents CLI

Log in, add deployment to the project, provision infrastructure and ship it, then register it with Gemini.

Short answer: Authenticate with agents-cli login and confirm with agents-cli login --status; then add deployment or CI/CD to an existing project with agents-cli scaffold enhance; set up the pipeline and staging and prod infrastructure with agents-cli infra cicd. All steps.

cost. Deploying provisions billable Google Cloud resources; check what infra cicd creates and tear down what you do not need.

Credentials. Logging in grants the CLI access to your Google Cloud project.

Who it is forA developer moving a working agent from laptop to production.

The problemWiring Cloud Run or Agent Runtime, secrets and pipelines by hand is slow and error prone.

The outcomeAn agent deployed to Google Cloud with a staging and prod pipeline.

What you need first

  • Python 3.11+, uv and Node.js
  • A coding agent such as Claude Code, Codex or Antigravity CLI
  • A Google Cloud or AI Studio account for login and deployment

Steps

  1. Authenticate with agents-cli login and confirm with agents-cli login --status
  2. Add deployment or CI/CD to an existing project with agents-cli scaffold enhance
  3. Set up the pipeline and staging and prod infrastructure with agents-cli infra cicd
  4. Ship it with agents-cli deploy, and register it with agents-cli publish gemini if you want it in Gemini

Prompt for your agent

For my google/agents-cli project, check `agents-cli login --status`, run `agents-cli scaffold enhance` and `agents-cli infra cicd`, then `agents-cli deploy`, and report the deployed endpoint.

Caveat. Deployment targets named in the README are Agent Runtime in Gemini platform, Cloud Run and GKE.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for google/agents-cli and "Deploy an agent to Google Cloud with CI/CD"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer