Skip to main content

morphir kb search

  • Usage: morphir kb search [FLAGS]

Search concepts by metadata, body text, or the SQLite index

Flags

  • --kb <PATH> — Path to the knowledge base root (the directory holding bundles/). Auto-detected when omitted

  • --json — Emit JSON instead of text, for chaining and for agent consumption

  • --query <QUERY> — Text to look for in titles, descriptions, tags and paths

  • --body — Also search document bodies

  • --type <TYPE_FILTER> — Filter by frontmatter type

  • --tag <TAG>… — Filter by tag (repeatable)

  • --status <STATUS> — Filter by status

  • --bundle <BUNDLE> — Restrict to one bundle

  • --index — Use the SQLite index for full-text search — faster, and ranks by relevance

  • --limit <LIMIT> — Row limit when using --index

    Default: 20

  • --db <DB> — Index database path (default: .dev/kb/index.db under the repository root)