kb command
Search and manage the knowledge packs.
bash
fobis kb <subcommand> [options]How to use it, with examples: Models, knowledge and agents.
All options
fobis kb add
Install an already built pack.
Arguments: PATH
| Option | Value | Default | Description |
|---|---|---|---|
--project | Use the project's packs (.fobis/kb) instead of the user's. |
fobis kb build
Build a pack from markdown and install it (user packs by default).
Arguments: SOURCES...
| Option | Value | Default | Description |
|---|---|---|---|
--name | TEXT | Pack name (lower case, digits, '-'). | |
--license | TEXT | Licence of the content (SPDX id). | |
--title | TEXT | One-line description. | |
--attribution | TEXT | Author / source to credit. | |
--notice | TEXT | NOTICE file to include. | |
--private | Build without licence: for your own use only. | ||
--out | TEXT | Output directory [default: the user or project pack dir]. | |
--project | Use the project's packs (.fobis/kb) instead of the user's. |
fobis kb list
List the installed packs (shipped, user, project).
No options.
fobis kb notice
Print a pack's licence, attribution and NOTICE.
Arguments: NAME
No options.
fobis kb remove
Remove a user (or project) pack; shipped packs cannot be removed.
Arguments: NAME
| Option | Value | Default | Description |
|---|---|---|---|
--project | Use the project's packs (.fobis/kb) instead of the user's. |
fobis kb search
Find the sections that best match QUERY.
Arguments: QUERY
| Option | Value | Default | Description |
|---|---|---|---|
--pack, -p | TEXT | Search only these packs (repeatable). | |
-k | INTEGER | 5 | Number of results. |
--json | Machine-readable output. |
fobis kb show
Print a section (and optionally its neighbours).
Arguments: CHUNK_ID
| Option | Value | Default | Description |
|---|---|---|---|
--context, -C | INTEGER | 0 | Also show N neighbouring sections. |