MASES.KNetCLI 2.9.7

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

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.1.3 1,919 2/17/2026
3.1.2 2,153 2/12/2026
3.1.1 2,029 11/28/2025
3.1.0 422 9/23/2025
3.0.4 860 9/23/2025
3.0.3 5,741 8/22/2025
3.0.2 1,928 8/5/2025
3.0.1 667 7/20/2025
3.0.0 589 7/19/2025
2.9.8 51 2/17/2026
2.9.7 77 2/12/2026
2.9.6 111 11/28/2025
2.9.5 133 11/28/2025
2.9.4 182 10/5/2025
2.9.3 385 7/20/2025
2.9.2 557 7/17/2025
2.9.1 4,404 2/5/2025
2.9.0 2,280 12/23/2024
2.8.2 1,419 11/5/2024
2.7.10 487 11/5/2024
Loading failed