Skip to content

How to Use Gemini CLI Extensions

Discover and use Gemini CLI extensions to add new capabilities, integrate with third-party services, and customize your development environment.

  1. 1

    Browse Available Extensions

    Use 'gemini extensions list' to browse the registry of available extensions. Filter by category (productivity, integrations, languages) to find relevant ones.

  2. 2

    Install Extensions

    Install an extension with 'gemini extensions install <name>'. Extensions are downloaded and configured automatically, adding new commands and capabilities to your CLI.

  3. 3

    Configure Extension Settings

    Many extensions have configurable options. Edit your .gemini/config.json to adjust extension-specific settings like API endpoints, default behaviors, or output formats.

  4. 4

    Use Extension Commands

    Once installed, extension commands are available directly in Gemini. Run 'gemini extensions help <name>' to see available commands and usage examples for each extension.

  5. 5

    Create Custom Extensions

    Build your own extensions by creating an npm package that follows the Gemini extension API. Export command handlers and tool definitions that integrate seamlessly with the CLI.