Skip to content

How to Use Antigravity CLI

Learn how to use the Antigravity CLI for enhanced AI-powered development workflows including project scaffolding, code generation, and deployment.

  1. 1

    Install Antigravity CLI

    Install the Antigravity CLI using 'npm install -g antigravity-cli'. This provides an enhanced wrapper around Gemini with additional workflow automation features.

  2. 2

    Initialize a New Project

    Run 'antigravity init' in an empty directory to scaffold a new project. Choose from available templates and configure your project settings interactively.

  3. 3

    Configure Your Environment

    Set up your antigravity.config.js file to define project-specific settings including preferred models, output directories, and integration endpoints.

  4. 4

    Use Built-in Commands

    Explore commands like 'antigravity generate', 'antigravity refactor', and 'antigravity test' to leverage AI-powered development workflows out of the box.

  5. 5

    Extend with Plugins

    Install community plugins using 'antigravity plugin add <name>' to extend functionality. Plugins can add new commands, integrations, and workflow automations.