Ksql.Linq.Cli 1.1.0

dotnet tool install --global Ksql.Linq.Cli --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Ksql.Linq.Cli --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#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.x together with Ksql.Linq 1.1.x.
    • The ai-assist guide 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.

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

  1. AI Assist guide

    dotnet ksql ai-assist --copy
    

    Paste it into your AI assistant and ask:

     “Read this AI Assistant Guide and assist me in designing or reviewing my Ksql.Linq project.”
    
  2. Generate KSQL script:

    dotnet ksql script \
      --project ./src/MyApp/MyApp.csproj \
      --output ./ksql/generated.sql \
      --verbose
    
  3. Generate 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 script and 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 0 12/13/2025
1.0.0 98 11/30/2025
0.9.5 383 11/19/2025