LiteGraphConsole 8.1.0
dotnet tool install --global LiteGraphConsole --version 8.1.0
dotnet new tool-manifest
dotnet tool install --local LiteGraphConsole --version 8.1.0
#tool dotnet:?package=LiteGraphConsole&version=8.1.0
nuke :add-package LiteGraphConsole --version 8.1.0
LiteGraphConsole
LiteGraphConsole is an interactive terminal shell for LiteGraph databases and endpoints. It installs as the lg command and is intended to feel similar to using sqlite3: choose a database or endpoint, enter statements, and end queries with ;.
Install
From the repository root:
.\install-tool.bat
To reinstall after rebuilding:
.\reinstall-tool.bat
To remove the tool:
.\remove-tool.bat
The scripts package src\LiteGraphConsole\LiteGraphConsole.csproj and install it as a local global tool command named lg.
Local Database
lg --database litegraph.db --tenant 00000000-0000-0000-0000-000000000000 --graph 00000000-0000-0000-0000-000000000000
The database mode opens a SQLite-backed LiteGraph repository directly.
Remote Endpoint
lg --endpoint http://localhost:8701 --tenant 00000000-0000-0000-0000-000000000000 --graph 00000000-0000-0000-0000-000000000000 --token litegraphadmin
Endpoint mode posts queries to:
/v1.0/tenants/{tenantGuid}/graphs/{graphGuid}/query
Use --token for bearer token authentication or --security-token for x-token authentication.
One Query
lg --database litegraph.db --tenant <tenant-guid> --graph <graph-guid> --execute "MATCH (n) RETURN n LIMIT 5"
Script File
lg --database litegraph.db --tenant <tenant-guid> --graph <graph-guid> --script queries.lg
Statements in script files are separated by semicolons. Semicolons inside quoted strings are preserved.
Parameters
Parameters use JSON values:
lg --database litegraph.db --tenant <tenant-guid> --graph <graph-guid> --param name='"Ada"' --execute "MATCH (n:Person) WHERE n.name = $name RETURN n"
Common parameter examples:
--param age=36
--param active=true
--param profile='{"role":"engineer"}'
--param embedding='[0.1,0.2,0.3]'
Interactive Commands
Inside the shell:
.help
.show
.tenant <guid>
.graph <guid>
.database <path>
.endpoint <url>
.token <token>
.param set <name> <json>
.param unset <name>
.param clear
.read <path>
.mode pretty
.mode compact
.quit
Queries are buffered until a line ends with ;.
MATCH (n:Person)
WHERE n.name = $name
RETURN n
LIMIT 5;
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.1.0 | 49 | 9/2/2026 |