MASES.KNetCLI 3.3.1-preview202610202

Prefix Reserved
This is a prerelease version of MASES.KNetCLI.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MASES.KNetCLI --version 3.3.1-preview202610202
                    
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 MASES.KNetCLI --version 3.3.1-preview202610202
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.KNetCLI&version=3.3.1-preview202610202&prerelease
                    
nuke :add-package MASES.KNetCLI --version 3.3.1-preview202610202
                    

title: CLI interface of .NET suite for Apache Kafka™ _description: Describes how to use CLI interface of .NET suite for Apache Kafka™

KNet: CLI

Installation

KNet CLI is available in two different formats:

The dotnet tool needs a JRE/JDK installed within the system.

Usage

Execute an Apache Kafka™ command

To use the CLI interface (KNetCLI) runs a command like the following:

  • dotnet tool
knet -ClassToRun ConsoleConsumer --bootstrap-server SERVER-ADDRESS:9093 --topic topic_name --from-beginning

If the previous command raises the error described in Intel CET and KNet the only solution is to apply the following workaround (within an elevated shell) and disable CET:

  reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\knet.exe" /v MitigationOptions /t REG_BINARY /d "0000000000000000000000000000002000" /f
  • Docker image
docker run ghcr.io/masesgroup/knet -ClassToRun ConsoleConsumer --bootstrap-server SERVER-ADDRESS:9093 --topic topic_name --from-beginning
docker run masesgroup/knet -ClassToRun ConsoleConsumer --bootstrap-server SERVER-ADDRESS:9093 --topic topic_name --from-beginning

Execute an interactive shell

To use the CLI interface (KNetCLI) in interactive mode runs a command like the following:

  • dotnet tool
knet -i

knet -i

  • Docker image
docker run ghcr.io/masesgroup/knet -i
docker run masesgroup/knet -i

Execute in script based mode

To use the CLI interface (KNetCLI) in script based mode runs a command like the following:

  • dotnet tool
knet -s path-to-script
  • Docker image
docker run ghcr.io/masesgroup/knet -s path-to-script
docker run masesgroup/knet -s path-to-script

Command line switches available

knetcli needs at least ClassToRun, Interactive or Script command-line switch to identify its behavior. Here the list:

  • ClassToRun: has precedence to all others and needs a second parameter which identify the command class to be executed
  • Interactive (i): starts an interactive session where the user can write code like in a REPL shell, optionally can be set JarList, NamespaceList and ImportList
  • Script (s): start a session to execute the script of the second parameter, optionally can be set JarList, NamespaceList and ImportList
  • NoLogo (nl): do not display initial informative string

Other options on Command line switch page.

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
3.3.1 251 11/18/2026
3.3.1-preview20261112 694 11/12/2026
3.3.1-preview20261031 391 10/31/2026
3.3.1-preview20261027 1,258 10/27/2026
3.3.1-preview20261025 145 10/25/2026
3.3.1-preview20261022 141 10/22/2026
3.3.1-preview202610202 140 10/20/2026
3.3.1-preview20261020 132 10/20/2026
3.3.1-preview20261019 206 10/19/2026
3.3.0 206 8/28/2026
3.2.3 6,084 6/16/2026
3.2.3-rc991 149 6/10/2026
3.2.3-rc99 1,149 6/9/2026
2.9.14 61 11/18/2026
2.9.14-preview20261112 90 11/12/2026
2.9.14-preview20261031 103 10/31/2026
2.9.14-preview20261027 141 10/27/2026
2.9.13 154 8/28/2026
2.9.12 158 6/16/2026
2.9.12-rc1 147 6/10/2026
Loading failed