Skip to content

library — CLI cheatsheet

Scope

library show-scope
library show-scope --search 'tags:"=cybersecurity"'

Index

library index
library index --dry-run
library index --no-progress
library index --include-tag agent-reference
library index --search 'tags:"=agent-reference" and formats:epub'
library search "defense in depth for APIs"
library search "MFA patterns" --limit 3

MCP

library serve

Config resolution

  1. Environment variables (LIBRARY_DB, LIBRARY_CALIBRE_LIBRARY, …)
  2. The private settings: <data_root>/config/library.toml, [general] (Settings, or library config set)
  3. tool-chest.toml [library] section (shared defaults only; per-user values do not belong there)
  4. Built-in defaults

Calibre scope examples

scope_all = true
include_tags = ["agent-reference"]
exclude_tags = ["Fantasy", "Fiction"]
include_query = 'vl:"Technical Reference"'
include_query = 'tags:"=security" and formats:epub'