senkani kb
Live
Query and manage the project knowledge base.
Syntax
senkani kb [list|get|search|rollback|history|timeline|migrate|unmigrate]
Behavior
Subcommands mirror senkani_knowledge + rollback/history/timeline from the enrichment layer + V.7 vault relocation (migrate, unmigrate). Flags: --sort, --type, --limit, --root, --to, --prune.
Example
$ senkani kb search "auth middleware" $ senkani kb migrate --to ~/Vaults/senkani --prune $ senkani kb unmigrate --prune
Flags
Flag
Description
list
List entities.
get <id>
Full entity detail.
search <q>
FTS5 search.
rollback <id>
Revert the last enrichment.
history <id>
Show enrichment history.
timeline
Chronological timeline of KB changes.
migrate --to <path>
Move the markdown vault to
<path>/<project-slug> and persist kb_vault_path to ~/.senkani/config.json. Idempotent; conflicts surface as a non-zero exit.unmigrate
Reverse the migration, restoring the project-local vault.
--prune
flag
false
Remove source-side files after copy. On
unmigrate --prune, also clears kb_vault_path.
Source:
Sources/CLI/KBCommand.swift