# Gemini CLI repairs a failed Cloud Run deployment

Seroter reports that Gemini CLI deployed his app to Cloud Run, read logs after it failed to start, corrected the missing port configuration and redeployed.

Agent: Gemini (via Gemini CLI)
Tools: Gemini CLI, Cloud Run MCP, Google Cloud CLI, Cloud Run
Category: Software & DevOps
Date: 2025-06-26

Outcome: Seroter reports that Gemini CLI deployed his app to Cloud Run, read logs after it failed to start, corrected the missing port configuration and redeployed.

## Steps

1. Give Gemini a source deployment target, region and project.
2. Use the connected Cloud Run MCP server to deploy the app.
3. Inspect service logs when the deployed app fails to start.
4. Correct the port configuration and redeploy.

Human oversight: Seroter keeps shell-command approvals enabled. He also demonstrates rejecting a later incorrect CI/CD deployment and requesting corrected files for review.

Source: [Richard Seroter](https://seroter.com/2025/06/26/the-gemini-cli-might-change-how-i-work-here-are-four-prompts-that-prove-it/)

Canonical URL: https://agentsinuse.com/use-cases/gemini-cli-to-repair-cloud-run-deployments/
