Developers often find themselves caught in the struggle between writing code quickly and deploying it effectively. The Gemini CLI Extension addresses this challenge by offering a streamlined approach to CI/CD, allowing for rapid deployments and comprehensive pipeline generation from a single terminal interface.
Creating the Cosmic Guestbook App
To illustrate the capabilities of the Gemini CLI Extension, a new project called the Cosmic Guestbook is created. This full-stack application features a React frontend and a Node.js Express backend. Instead of manually setting up the project, developers can leverage the extension to scaffold the app automatically.
Setting Up the Extension
To deploy the Cosmic Guestbook online, the CI/CD extension must be installed. This process begins by ensuring the gcloud CLI is set up and authenticated. Depending on the development environment, installation commands vary:
For Gemini CLI
Run the command: gemini extensions install https://github.com/gemini-cli-extensions/cicd.
For Claude Code
Use the following commands to add the marketplace and install the plugin:
# 1. Add the Marketplace
claude plugin marketplace add https://github.com/gemini-cli-extensions/cicd.git
# 2. Install the Plugin
claude plugin install cicd
For Antigravity and npx skills
Enable the extension's MCP Server as a custom MCP and add skills with:
npx skills add https://github.com/gemini-cli-extensions/cicd --global --all --agent antigravity
How the Extension Works
The CI/CD extension operates as a three-tier system that translates developer intent into secure, production-ready infrastructure:
- Skills: Specialized AI skills guide the agent in analyzing code, asking pertinent questions, and managing errors.
- CI/CD MCP Server: This server provides tools for manipulating Google Cloud, including secret scanning and service provisioning.
- Local Knowledge Base: A retrieval-augmented generation database ensures accurate responses based on verified architecture patterns.
Rapid Deployment with the Inner Loop
When developing prototypes or testing features, speed is essential. The traditional deployment process can be cumbersome, but the CI/CD extension simplifies it into a single natural language prompt. For example, a developer can type: gemini "Deploy this application to Google Cloud using the google-cicd-deploy skill".
Security Checks
Before deployment, the extension performs a security scan to catch any exposed secrets, preventing sensitive information from being pushed to the cloud.
Application Analysis
The agent analyzes the project files to determine the best deployment strategy, whether using Google Cloud Storage for static sites or Cloud Run for dynamic services.
Configuration Clarification
Before deployment, the assistant prompts the developer for necessary configuration details, ensuring control over the cloud architecture.
Automating the Outer Loop
For production systems, a more rigorous approach is required. The extension facilitates the creation of a comprehensive CI/CD pipeline through conversation rather than manual YAML configuration.
Design and Feedback
Developers can initiate the design process through simple prompts, allowing the assistant to propose a YAML plan for review.
Infrastructure Provisioning
Upon approval, the assistant sequentially provisions the necessary infrastructure, such as container registries and Git connections.
Pipeline Generation
The agent generates the cloudbuild.yaml file that defines the pipeline stages, ensuring automatic execution with a Cloud Build trigger linked to the GitHub repository.
Ensuring Security and Control
The extension operates within the permissions of the developer's local Application Default Credentials, ensuring that all actions are verifiable and secure. Developers maintain control over the proposed pipeline and can adjust it as needed.
Next Steps for Developers
To take advantage of the Gemini CLI Extension:
- Install the CI/CD Extension for Gemini CLI.
- Deploy a project to Google Cloud to see it live.
- Automate the outer loop by running a design command against a production-ready repository.
This extension empowers developers to focus on writing code rather than wrestling with configuration files.