Skip to content

CLI Commands

The spool CLI will let you search your indexed data directly from the terminal.

Search across all indexed sources.

Terminal window
spool search "auth middleware"
spool search "auth middleware" --source claude
spool search "auth middleware" --source gemini
spool search '"auth middleware"'

By default, whitespace-separated terms are treated as a multi-keyword search, so auth middleware can match entries that contain both terms even when they are not adjacent. Natural multi-term searches prioritize exact phrase hits first, then broader all-terms matches. If you want an exact phrase match only, pass explicit FTS quotes inside the query, for example spool search '"auth middleware"'.

Manually trigger re-indexing.

Terminal window
spool index

Show indexing status and statistics.

Terminal window
spool status