Skip to content

CLI Commands Overview

The locallens CLI is installed automatically with pip install locallens.

Commands

CommandDescription
indexIndex local files into the vector database
searchSemantic search over indexed files
askAsk a question using RAG
statsShow collection statistics
doctorRun health checks
serveStart MCP, API, or UI server
voiceStart the voice interface
watchWatch a folder and re-index on changes
sync pullPull snapshot from remote Qdrant
sync pushPush local data to remote Qdrant
schema showPrint current collection schema
schema historyPrint all schema versions

Global options

All commands support --format json for machine-readable output. See JSON Output for details.

Quick reference

bash
# Index a folder
locallens index ~/Documents

# Search
locallens search "meeting notes" --top-k 10

# Ask a question
locallens ask "What was discussed in the Q3 meeting?"

# Check health
locallens doctor

# Start MCP server
locallens serve --mcp

Released under the MIT License.