Skip to content

How to Deploy with Gemini CLI

Streamline your deployment process using Gemini CLI to manage build steps, environment configurations, and deployment automation.

  1. 1

    Create a Deployment Skill

    Define a deployment skill in .gemini/skills/deploy/ that encodes your deployment pipeline steps, environment requirements, and pre-deployment checks.

  2. 2

    Configure Environment Targets

    Set up environment-specific configurations for staging, production, and development. Store non-sensitive config in your project and reference secrets from environment variables.

  3. 3

    Run Pre-Deployment Checks

    Use Gemini to verify your build is clean, tests pass, and no security vulnerabilities exist before initiating deployment. Automate these checks in your skill.

  4. 4

    Execute the Deployment

    Trigger deployment with your skill command. Gemini orchestrates the build, runs migrations if needed, and deploys to your target platform (Vercel, AWS, GCP, etc.).

  5. 5

    Verify Post-Deployment

    After deployment, use Gemini to run smoke tests against the live environment, check health endpoints, and verify critical user flows are working correctly.