Clear the gemini-cli-docs search cache (inverted index). This forces the index to rebuild on the next documentation search.
Clears the Gemini CLI documentation search cache to force index rebuild.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install claude-ecosystem@melodic-softwareClear the gemini-cli-docs search cache (inverted index). This forces the index to rebuild on the next documentation search.
index.yaml or documentation filesgit pull with documentation changesCheck if --force flag is present in $ARGUMENTS.
force_mode = "--force" in arguments (case-insensitive)
The gemini-cli-docs cache is located at:
${CLAUDE_PLUGIN_ROOT}/skills/gemini-cli-docs/.cache/
Or via installed path:
~/.claude/plugins/cache/<marketplace>/google-ecosystem/<version>/skills/gemini-cli-docs/.cache/
List the cache files:
| File | Purpose |
|---|---|
inverted_index.json | Search index |
cache_version.json | Hash-based validity tracking |
If cache directory doesn't exist or is empty, report: "Cache already clear. Nothing to do."
If NOT force_mode, present the cache clear plan:
## Cache Clear Plan
**Target:** Gemini CLI documentation search index
| File | Size |
| --- | --- |
| inverted_index.json | X.X MB |
| cache_version.json | 512 bytes |
**Total:** X.X MB
> **Note:** The search index will rebuild automatically on the next documentation search.
> For immediate rebuild, run `/rebuild-gemini-docs-index` after clearing.
**Proceed?** Reply "yes" to continue, or use `--force` to skip this confirmation.
Use the cache_manager.py script to clear:
python "${CLAUDE_PLUGIN_ROOT}/skills/gemini-cli-docs/scripts/utils/cache_manager.py" --clear
Or manually delete the cache files:
rm -f "${CLAUDE_PLUGIN_ROOT}/skills/gemini-cli-docs/.cache/inverted_index.json"
rm -f "${CLAUDE_PLUGIN_ROOT}/skills/gemini-cli-docs/.cache/cache_version.json"
## Cache Cleared
Successfully cleared Gemini CLI documentation search cache.
**Cleared:**
- inverted_index.json
- cache_version.json
**Next steps:**
- Search index will rebuild automatically on next search
- Or run `/rebuild-gemini-docs-index` to rebuild immediately