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. tool-chest.toml [library] section (when running inside tool-chest)
  3. ~/.config/library/config.toml
  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'