MASES.KNetCLI 2.6.0

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

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:

[!IMPORTANT] 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
  • 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 net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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
2.6.0 584 3/1/2024
2.5.0 493 2/28/2024
2.4.3 414 2/11/2024
2.4.2 185 1/27/2024
2.4.1 126 1/21/2024
2.4.0 109 1/20/2024
2.3.0 991 11/25/2023
2.2.0 363 10/19/2023
2.1.3 618 10/11/2023
2.1.2 573 10/6/2023
2.1.1 536 10/5/2023
2.1.0 609 9/27/2023
2.0.2 632 8/2/2023
2.0.1 684 7/11/2023
2.0.0 730 7/8/2023
1.5.5 556 7/1/2023
1.5.4 426 5/28/2023
1.5.3 604 4/16/2023
1.5.2 667 4/11/2023
1.5.1 644 3/15/2023
1.5.0 748 2/9/2023
1.4.8 749 11/28/2022
1.4.7 781 11/23/2022
1.4.6 807 11/22/2022
1.4.5 689 11/21/2022
1.4.4 974 11/1/2022
1.4.3 1,129 10/21/2022
1.4.2 1,178 10/17/2022
1.4.1 1,083 10/10/2022
1.4.0 1,169 10/6/2022
1.3.6 957 9/19/2022
1.3.5 967 9/8/2022
1.3.4 1,444 8/18/2022
1.3.3 1,642 8/5/2022
1.3.2 1,738 6/19/2022
1.3.1 1,776 5/23/2022
1.2.4 2,106 5/11/2022
1.2.3 1,826 5/7/2022
1.2.2 2,062 5/2/2022
1.2.1 2,138 3/28/2022
1.2.0 2,030 3/20/2022