MASES.KNetCLI 3.3.1

Prefix Reserved
dotnet tool install --global MASES.KNetCLI --version 3.3.1
                    
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
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.KNetCLI&version=3.3.1
                    
nuke :add-package MASES.KNetCLI --version 3.3.1
                    

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 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. 
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 358 11/18/2026
3.3.1-preview20261112 705 11/12/2026
3.3.1-preview20261031 400 10/31/2026
3.3.1-preview20261027 1,267 10/27/2026
3.3.1-preview20261025 156 10/25/2026
3.3.1-preview20261022 145 10/22/2026
3.3.1-preview202610202 149 10/20/2026
3.3.1-preview20261020 140 10/20/2026
3.3.1-preview20261019 214 10/19/2026
3.3.0 210 8/28/2026
3.2.3 6,095 6/16/2026
3.2.3-rc991 154 6/10/2026
3.2.3-rc99 1,157 6/9/2026
2.9.14 111 11/18/2026
2.9.14-preview20261112 99 11/12/2026
2.9.14-preview20261031 108 10/31/2026
2.9.14-preview20261027 150 10/27/2026
2.9.13 157 8/28/2026
2.9.12 163 6/16/2026
2.9.12-rc1 155 6/10/2026
Loading failed