← All Docs

CLI Reference

Complete reference for all Lore CLI commands.

Setup & Auth

CommandDescription
lore setupGuided wizard — configure API keys, sign in, create data repo
lore setup --openai-key <key> --anthropic-key <key> --email <email>Non-interactive setup (sends OTP, exits)
lore setup ... --code <code>Complete non-interactive setup with OTP code
lore auth loginSign in with email OTP
lore auth login -e user@example.comSign in with specified email
lore auth login -e user@example.com --send-onlySend OTP and exit
lore auth login -e user@example.com --code <code>Verify OTP non-interactively
lore auth logoutClear session
lore auth whoamiShow current authentication status

Search & Research

CommandDescription
lore search <query>Hybrid search (semantic + keyword)
lore search <query> --mode semanticVector similarity only
lore search <query> --mode keywordFull-text search only
lore search <query> --project <name>Filter to project
lore research <query>AI-powered deep research across sources
lore browseInteractive TUI browser

Ingest

CommandDescription
lore ingest "content"Ingest inline content
lore ingest --file ./notes.mdIngest from a file
echo "..." | lore ingestIngest from stdin/pipe
lore ingest "content" -p myproject -t "My Title"With project and title
lore ingest --file doc.md --type meeting --url https://...With metadata

Sync & Sources

CommandDescription
lore syncSync all configured sources
lore sync --dry-runPreview what would sync
lore sync addAdd a source directory (interactive)
lore sync add --name "Notes" --path ~/notes --project notesAdd non-interactively (syncs all files)
lore sync add --name "Docs" --path ~/docs --glob "**/*.md" --project docsAdd with specific file type filter
lore sync listList configured source directories
lore sync startStart background sync daemon
lore sync stopStop background sync daemon
lore sync statusShow daemon status

Supported file formats: Markdown, JSON, JSONL, plain text, CSV, HTML, XML, PDF, and images (JPEG, PNG, GIF, WebP). The default glob is **/* (all files). Use --glob to restrict to specific types.

Documents

CommandDescription
lore docs listList all indexed documents
lore docs get <id>View a document by ID

Projects

CommandDescription
lore projectsList all projects with source counts
lore projects archive <name>Archive a project

MCP Server

CommandDescription
lore mcpStart the MCP server (for AI tool integration)

Skills

CommandDescription
lore skills listList available agent skills
lore skills install <name>Install a skill
lore skills show <name>Show skill details

Updates

CommandDescription
lore updateCheck for and install the latest version, restart daemon
lore update --checkCheck for updates without installing

Environment Variables

These can be set via environment or via lore setup (stored in ~/.config/lore/config.json):

VariableDescription
OPENAI_API_KEYRequired for embeddings
ANTHROPIC_API_KEYRequired for research agent and sync
SUPABASE_URLSupabase project URL (has default)
SUPABASE_PUBLISHABLE_KEYSupabase publishable key (has default)
SUPABASE_SERVICE_KEYService key — bypasses RLS, env-only
LORE_DATA_DIRData directory path (default: ~/.lore)
LORE_AUTO_GIT_PULLAuto git pull every 5 min (default: true)
LORE_AUTO_INDEXAuto-index new sources (default: true)