Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMar 29, 2026·1 min de lectura

Gemini CLI Extension: gcloud — Cloud CLI Operations

Gemini CLI extension for Google Cloud Platform. Deploy, configure, and manage GCP resources via natural language commands.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 17/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
CLI Tool
Instalación
Stage only
Confianza
Confianza: Community
Entrada
Gemini CLI Extension: Gcloud
Comando de staging seguro
npx -y tokrepo@latest install 70150d0c-4b06-447f-9bde-9a6741a06389 --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

TL;DR
Gemini CLI extension for managing Google Cloud resources via natural language commands.
§01

What it is

The Gemini CLI gcloud extension brings Google Cloud Platform operations into the Gemini CLI interface. Instead of memorizing gcloud CLI syntax, you describe what you want in natural language, and the extension translates it into the correct gcloud commands. It covers deployment, configuration, monitoring, and resource management across GCP services.

Developers and DevOps engineers who use Google Cloud but struggle with the extensive gcloud CLI syntax benefit from this extension. It reduces the learning curve for GCP operations by letting AI handle command construction.

§02

How it saves time or tokens

The gcloud CLI has hundreds of commands with complex flag combinations. Looking up the right syntax in documentation takes minutes per command. This extension generates correct gcloud commands from natural language descriptions, saving the lookup time. For AI-assisted cloud management, it also reduces the prompt engineering needed to get correct infrastructure commands.

§03

How to use

  1. Install the Gemini CLI
  2. Install the gcloud extension
  3. Describe cloud operations in natural language
§04

Example

# Install the extension
gemini extensions install gcloud

# Deploy a Cloud Run service
gemini 'Deploy my-app to Cloud Run in us-central1 with 2GB memory'
# Generates: gcloud run deploy my-app --source . --region us-central1 --memory 2Gi

# Check service status
gemini 'Show all Cloud Run services in my project'
# Generates: gcloud run services list

# Manage IAM
gemini 'Grant viewer role to user@example.com on this project'
# Generates: gcloud projects add-iam-policy-binding ...
§05

Related on TokRepo

§06

Common pitfalls

  • The extension generates commands but does not validate permissions; ensure your gcloud auth has the required roles
  • Complex multi-step operations (e.g., VPC peering) may require manual verification of generated commands
  • The extension requires an active gcloud auth session; run gcloud auth login before using it

Preguntas frecuentes

Does this extension require a Gemini API key?+

The Gemini CLI handles authentication. The extension uses the Gemini model through the CLI's built-in access. You need a Google Cloud project with the Gemini API enabled.

Which GCP services are supported?+

The extension covers major GCP services including Cloud Run, Compute Engine, Cloud Storage, IAM, Cloud SQL, Kubernetes Engine, and others. Support depends on what the gcloud CLI can manage.

Does it execute commands automatically?+

By default, the extension shows the generated gcloud command for review before execution. You can approve, modify, or reject it. Auto-execution mode is available but not recommended for production operations.

Can I use this with other cloud providers?+

No. This extension is specific to Google Cloud Platform and the gcloud CLI. AWS and Azure have their own CLI tools and would require separate extensions.

Is the Gemini CLI free?+

The Gemini CLI is free for individual use with a Google account. Usage of the Gemini model follows Google's free tier limits. Heavy usage or enterprise features may require a paid Google Cloud subscription.

Referencias (3)
🙏

Fuente y agradecimientos

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/gcloud Part of Gemini CLI — ⭐ 99,400+

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados