# Command-Line Interface Reference Complete reference for all CLI commands. **Note:** All commands shown below should be prefixed with `uv run` when running from the project directory, or you can activate the virtual environment first with `source .venv/bin/activate`. ## Global Options All commands support these global options: - `--help`: Show help message and exit - `--version`: Show version information ## Commands ### download Download conference papers from OpenReview API or via plugins. **Usage:** ```bash abstracts-explorer download [OPTIONS] ``` **Options:** - `--year INTEGER`: Conference year to download (required) - `--db-path TEXT`: Path to SQLite database file (required) - `--force`: Force re-download even if papers exist - `--cache/--no-cache`: Enable/disable caching (default: enabled) **Examples:** ```bash # Download 2025 papers uv run abstracts-explorer download --year 2025 # Force re-download uv run abstracts-explorer download --year 2025 --force # Disable caching uv run abstracts-explorer download --year 2025 --no-cache ``` ### create-embeddings Create vector embeddings for semantic search. **Usage:** ```bash abstracts-explorer create-embeddings [OPTIONS] ``` **Options:** - `--db-path TEXT`: Path to SQLite database with papers (required) - `--collection-name TEXT`: Collection name in ChromaDB (default: from config) - `--model TEXT`: Embedding model to use (default: from config) - `--force`: Recreate embeddings even if they exist **Examples:** ```bash # Create embeddings with defaults (uses EMBEDDING_DB from config) uv run abstracts-explorer create-embeddings # Use custom collection name uv run abstracts-explorer create-embeddings \ \ --collection-name my_papers # Force recreation uv run abstracts-explorer create-embeddings --force ``` ### search Search papers by keywords or semantic similarity. **Usage:** ```bash abstracts-explorer search QUERY [OPTIONS] ``` **Arguments:** - `QUERY`: Search query string (required) **Options:** - `--db-path TEXT`: Path to SQLite database (required) - `--limit INTEGER`: Maximum number of results (default: 10) - `--year INTEGER`: Filter by conference year - `--use-embeddings`: Use semantic search (requires embeddings) - `--title-only`: Search only in paper titles - `--abstract-only`: Search only in abstracts **Examples:** ```bash # Basic search uv run abstracts-explorer search "transformer" # Limit results uv run abstracts-explorer search "deep learning" --limit 20 # Filter by year uv run abstracts-explorer search "neural network" --year 2025 # Semantic search using embeddings uv run abstracts-explorer search "attention mechanism" --use-embeddings # Search only titles uv run abstracts-explorer search "BERT" --title-only ``` ### chat Interactive RAG-powered chat interface. **Usage:** ```bash abstracts-explorer chat [OPTIONS] ``` **Options:** - `--db-path TEXT`: Path to SQLite database (required) - `--model TEXT`: LLM model to use (default: from config) - `--temperature FLOAT`: Temperature for responses (default: from config) - `--max-tokens INTEGER`: Maximum tokens in response (default: from config) - `--n-papers INTEGER`: Number of papers for context (default: from config) **Interactive Commands:** While in the chat session: - Type your question and press Enter to get a response - `exit` or `quit`: Exit the chat session - `reset`: Reset the conversation history - `export [filename]`: Export conversation to JSON file **Examples:** ```bash # Start chat with defaults (uses EMBEDDING_DB from config) uv run abstracts-explorer chat # Use custom model uv run abstracts-explorer chat --model llama-3.2-3b-instruct # Adjust response parameters uv run abstracts-explorer chat \ --temperature 0.9 \ --max-tokens 2000 \ --n-papers 10 ``` ### info Show database information and statistics. **Usage:** ```bash abstracts-explorer info [OPTIONS] ``` **Options:** - `--db-path TEXT`: Path to SQLite database (required) - `--show-embeddings`: Also show embedding statistics **Examples:** ```bash # Basic info uv run abstracts-explorer info # Include embedding info uv run abstracts-explorer info --show-embeddings ``` ### registry Commands for sharing paper databases and embeddings via OCI container registries (e.g. GitHub Container Registry). See the full [Registry documentation](registry.md) for details. #### registry upload **Usage:** ```bash abstracts-explorer registry upload [OPTIONS] ``` **Options:** - `-r, --repository TEXT`: OCI repository URL (e.g. `ghcr.io/thawn/abstracts-data`). Falls back to `REGISTRY_REPOSITORY` env var. - `--token TEXT`: Authentication token. Falls back to `GITHUB_TOKEN` env var. - `-c, --conference TEXT`: Conference to upload (case-insensitive). Use `all` for all conferences. - `-y, --year INTEGER`: Year to upload. Omit to upload all available years. - `--yes`: Skip confirmation prompts. **Examples:** ```bash # Upload NeurIPS 2024 abstracts-explorer registry upload -r ghcr.io/thawn/abstracts-data --conference neurips --year 2024 # Upload all NeurIPS years abstracts-explorer registry upload -r ghcr.io/thawn/abstracts-data --conference neurips # Upload all conferences (CI mode) abstracts-explorer registry upload -r ghcr.io/thawn/abstracts-data --conference all --yes ``` #### registry download **Usage:** ```bash abstracts-explorer registry download [OPTIONS] ``` **Options:** - `-r, --repository TEXT`: OCI repository URL. Falls back to `REGISTRY_REPOSITORY` env var. - `--token TEXT`: Authentication token. Falls back to `GITHUB_TOKEN` env var. - `-c, --conference TEXT`: Conference to download (case-insensitive). Use `all` for all conferences. - `-y, --year INTEGER`: Year to download. Omit to download all available years. - `--embedding-model TEXT`: Embedding model name (used to derive the tag when no local data exists). - `--yes`: Skip confirmation prompts (also auto-confirms clear-and-retry on model mismatch). **Examples:** ```bash # Download NeurIPS 2024 abstracts-explorer registry download -r ghcr.io/thawn/abstracts-data --conference neurips --year 2024 # Download with explicit embedding model (when local DB is empty) abstracts-explorer registry download -r ghcr.io/thawn/abstracts-data --conference neurips --year 2024 \ --embedding-model text-embedding-qwen3-embedding-4b # Download all (CI mode) abstracts-explorer registry download -r ghcr.io/thawn/abstracts-data --conference all --yes ``` #### registry list **Usage:** ```bash abstracts-explorer registry list [OPTIONS] ``` **Options:** - `-r, --repository TEXT`: OCI repository URL. Falls back to `REGISTRY_REPOSITORY` env var. - `--token TEXT`: Authentication token. Falls back to `GITHUB_TOKEN` env var. - `--tag TEXT`: Inspect a specific tag and display its metadata. **Examples:** ```bash # List all tags abstracts-explorer registry list -r ghcr.io/thawn/abstracts-data # Inspect a specific tag abstracts-explorer registry list -r ghcr.io/thawn/abstracts-data \ --tag neurips-2024_text-embedding-qwen3-embedding-4b ``` ## Environment Variables All CLI commands respect configuration from environment variables and `.env` files. See the [Configuration](configuration.md) page for details. ## Exit Codes - `0`: Success - `1`: General error - `2`: Invalid arguments or options