Skip to main content

bgng import

Adds local content to the qmd-backed knowledge base.

Usage

bgng import ~/Documents/Notes --collection notes
bgng import ~/Projects/docs --pattern "**/*.{md,txt}"
bgng import ./meeting-notes.md --collection notes
bgng import ~/Docs --context "Project documentation"
bgng import ~/Docs --no-index

Behavior

Directories are registered in-place. Single files are copied into ~/.bgng/<collection>/<basename> and then indexed. Unless --no-index is set, the command indexes after registration.

Flags

FlagDescription
--collection=<name>Target collection. Default is notes.
--pattern=<glob>Collection glob.
--context=<text>Set path-level context for /.
--no-indexRegister only; index later.