The Gemini CLI's functionality can be expanded through extensions. These add-ons allow you to integrate new tools, support additional languages, or automate specific workflows. Managing these extensions is straightforward using the gemini extensions command suite.
Basic Management Commands
- List Extensions: To see what is currently installed, run:
gemini extensions list
This displays the extension name, version, and status (enabled/disabled). - Install Extension: To add a new capability, use:
gemini extensions install <extension-name>
For example:gemini extensions install gemini-python-tools. - Update Extension: To ensure you have the latest features and fixes:
gemini extensions update <extension-name>
Or simplygemini extensions update --allto update everything.
Enabling and Disabling
Sometimes you may want to temporarily turn off an extension without removing it entirely (e.g., for debugging or conflict resolution).
- Disable:
gemini extensions disable <extension-name> - Enable:
gemini extensions enable <extension-name>
Settings Management
Extensions often come with their own configuration options. While some can be configured via flags, most persistent settings are managed in the global configuration file (usually ~/.gemini/config.json) under an extensions key.