Skip to main content

Knowledge Graph Pseudo CLI

Generated from packages/codeboltjs/src/tools/pseudo-cli/commands.ts. Edit the registry or rerun node scripts/generate-pseudo-cli-docs.js instead of updating this file by hand.

The kg pseudo CLI module currently exposes 10 commands.

Related SDK docs: Knowledge Graph

Commands At A Glance

ActionDescriptionRequired flags
create-templateCreate KG instance template--config
list-templatesList KG instance templatesNone
create-instanceCreate KG instance--config
list-instancesList KG instancesNone
get-instanceGet KG instance--id
add-recordAdd memory record--instance, --record
list-recordsList memory records--instance
add-edgeAdd edge--instance, --edge
list-edgesList edges--instance
execute-viewExecute a view--id

create-template

Create KG instance template

codebolt kg create-template --config <json>
NameFlagTypeRequiredDescription
config--configjsonYesStructured configuration object for the target operation.

list-templates

List KG instance templates

codebolt kg list-templates

This command takes no parameters.

create-instance

Create KG instance

codebolt kg create-instance --config <json>
NameFlagTypeRequiredDescription
config--configjsonYesStructured configuration object for the target operation.

list-instances

List KG instances

codebolt kg list-instances

This command takes no parameters.

get-instance

Get KG instance

codebolt kg get-instance --id <string>
NameFlagTypeRequiredDescription
id--idstringYesIdentifier of the target resource.

add-record

Add memory record

codebolt kg add-record --instance <string> --record <json>
NameFlagTypeRequiredDescription
instance--instancestringYesValue for the instance parameter.
record--recordjsonYesValue for the record parameter.

list-records

List memory records

codebolt kg list-records --instance <string>
NameFlagTypeRequiredDescription
instance--instancestringYesValue for the instance parameter.

add-edge

Add edge

codebolt kg add-edge --instance <string> --edge <json>
NameFlagTypeRequiredDescription
instance--instancestringYesValue for the instance parameter.
edge--edgejsonYesValue for the edge parameter.

list-edges

List edges

codebolt kg list-edges --instance <string>
NameFlagTypeRequiredDescription
instance--instancestringYesValue for the instance parameter.

execute-view

Execute a view

codebolt kg execute-view --id <string>
NameFlagTypeRequiredDescription
id--idstringYesIdentifier of the target resource.