Use Bun instead of Node.js (bun not node, bun install not npm install).
qmd add . # Index markdown files in current directory
qmd status # Show index status and collections
qmd update-all # Re-index all collections
qmd embed # Generate vector embeddings (requires Ollama)
qmd search <query> # BM25 full-text search
qmd vsearch <query> # Vector similarity search
qmd query <query> # Hybrid search with reranking (best quality)
qmd get <file> # Get document content (fuzzy matches if not found)
qmd multi-get <pattern> # Get multiple docs by glob or comma-separated list
# Search & retrieval
-c, --collection <name> # Restrict search to a collection (matches pwd suffix)
-n <num> # Number of results
--all # Return all matches
--min-score <num> # Minimum score threshold
--full # Show full document content
# Multi-get specific
-l <num> # Maximum lines per file
--max-bytes <num> # Skip files larger than this (default 10KB)
# Output formats (search and multi-get)
--json, --csv, --md, --xml, --files
bun qmd.ts <command> # Run from source
bun link # Install globally as 'qmd'
qmd add, qmd add-context, qmd embed, or qmd update-all automatically~/.cache/qmd/index.sqlitebun build --compile - it overwrites the shell wrapper and breaks sqlite-vecqmd file is a shell script that runs bun qmd.ts - do not replace it