Skip to content

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

OptionValueDefaultDescription
--projectUse 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...

OptionValueDefaultDescription
--nameTEXTPack name (lower case, digits, '-').
--licenseTEXTLicence of the content (SPDX id).
--titleTEXTOne-line description.
--attributionTEXTAuthor / source to credit.
--noticeTEXTNOTICE file to include.
--privateBuild without licence: for your own use only.
--outTEXTOutput directory [default: the user or project pack dir].
--projectUse 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

OptionValueDefaultDescription
--projectUse the project's packs (.fobis/kb) instead of the user's.

Find the sections that best match QUERY.

Arguments: QUERY

OptionValueDefaultDescription
--pack, -pTEXTSearch only these packs (repeatable).
-kINTEGER5Number of results.
--jsonMachine-readable output.

fobis kb show ​

Print a section (and optionally its neighbours).

Arguments: CHUNK_ID

OptionValueDefaultDescription
--context, -CINTEGER0Also show N neighbouring sections.