Ksql.Linq.Cli
1.1.0
dotnet tool install --global Ksql.Linq.Cli --version 1.1.0
dotnet new tool-manifest
dotnet tool install --local Ksql.Linq.Cli --version 1.1.0
#tool dotnet:?package=Ksql.Linq.Cli&version=1.1.0
nuke :add-package Ksql.Linq.Cli --version 1.1.0
Design-time KSQL & Avro Tool (with AI Assist)
This is a .NET global tool that generates KSQL scripts and Avro schemas from a Ksql.Linq-based application, without requiring Kafka/ksqlDB/Schema Registry to be running.
It also supports AI-assisted workflows for developers using Ksql.Linq.
This tool is developed alongside Ksql.Linq. For best results, keep the library and CLI versions aligned.
Prerequisites / compatibility
- .NET SDK: .NET 8+ (this tool targets
net8.0). - Version pairing (recommended): use
Ksql.Linq.Cli 1.1.xtogether withKsql.Linq 1.1.x.- The
ai-assistguide is bundled with Ksql.Linq; the CLI reads the guide from the library it ships with. - Operational note: keeping library/CLI versions aligned avoids “guide/content drift”, reduces behavior mismatch, and makes support/debugging simpler.
- The
Install
dotnet tool install --global Ksql.Linq.Cli
Update
Global tool:
dotnet tool update --global Ksql.Linq.Cli
Local tool (tool manifest):
dotnet tool update Ksql.Linq.Cli
After updating, rerun dotnet ksql ai-assist --copy if you want to refresh the AI Assistant Guide text you paste into your AI assistant.
Commands
AI Assist guide
dotnet ksql ai-assist --copyPaste it into your AI assistant and ask:
“Read this AI Assistant Guide and assist me in designing or reviewing my Ksql.Linq project.”Generate KSQL script:
dotnet ksql script \ --project ./src/MyApp/MyApp.csproj \ --output ./ksql/generated.sql \ --verboseGenerate Avro schemas:
dotnet ksql avro \ --project ./src/MyApp/MyApp.csproj \ --output ./schemas \ --verbose
Both commands expect your assembly to implement IDesignTimeKsqlContextFactory,
which creates a design-time KsqlContext that configures the model but skips
runtime connections.
Further documentation
For more details and options, see the wiki: https://github.com/synthaicode/Ksql.Linq/wiki/CLI-Usage
AI-assisted workflows
Ksql.Linq ships with an AI Assistant Guide (AI_ASSISTANT_GUIDE.md) that explains how to use modern AI coding assistants
(for example: ChatGPT, Claude, GitHub Copilot, Cursor) together with both the library and this CLI tool.
- Ask an AI to design or review your
KsqlContext, entities, and windowing strategy. - Explain KSQL scripts produced by
dotnet ksql scriptand highlight what to verify on your own ksqlDB version/configuration. - Get prompt patterns and anti-patterns specific to Ksql.Linq so the AI respects your model and conventions.
Run dotnet ksql ai-assist --copy, paste it into your AI assistant, and ask it to follow the guide.
| 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 was computed. 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.