Clear and immediately rebuild the gemini-cli-docs search index. This is faster than `/clear-gemini-docs-cache` + waiting for next search because it triggers the rebuild immediately.
Rebuilds the Gemini CLI documentation search index immediately for fresh results.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install claude-ecosystem@melodic-softwareClear and immediately rebuild the gemini-cli-docs search index. This is faster than /clear-gemini-docs-cache + waiting for next search because it triggers the rebuild immediately.
index.yaml or documentation filesgit pull with documentation changes| Command | Action | Search Availability |
|---|---|---|
/clear-gemini-docs-cache | Clears cache only | Rebuild on next search (lazy) |
/rebuild-gemini-docs-index | Clears + rebuilds | Immediate (eager) |
This command clears the Gemini CLI documentation search cache and immediately rebuilds the index.
First, check the current cache state. Report whether the cache exists, is valid, and when it was last built.
Unless the user passed --force, show a rebuild plan with the current cache state and ask for confirmation before proceeding. Explain that rebuilding takes a few seconds and search will be unavailable during the rebuild.
Once confirmed (or if --force was passed):
Report the new index statistics including document count and build time. Confirm that search is now available.
## Index Rebuilt
Successfully rebuilt Gemini CLI documentation search index.
**New index stats:**
- Documents: X
- Build time: Xms
**Search is now available.**