CLI
Topic
The topic subcommand is used to manage topics in a Nisshi cluster.
Create
Create a topic:
nisshi topic create --help
Usage: nisshi topic create [OPTIONS] <NAME>
Arguments:
<NAME> The name of the topic to create
Options:
--broker <BROKER> Broker URL [default: tcp://localhost:9092]
--partitions <PARTITIONS> The number of partitions to create [default: 3]
--config <CONFIG>
-h, --help Print help
The topic subcommand will automatically load environment variables from a file named .env in the current directory or any of its parents.
Example
nisshi topic create taxi
Delete
Delete an existing topic:
nisshi topic delete --help
Usage: nisshi topic delete [OPTIONS] <NAME>
Arguments:
<NAME> The name of the topic to delete
Options:
--broker <BROKER> Broker URL [default: tcp://localhost:9092]
-h, --help Print help
Example
nisshi topic delete taxi
List
List existing topics:
Usage: nisshi topic list [OPTIONS]
Options:
--broker <BROKER> Broker URL [default: tcp://localhost:9092]
-h, --help Print help
Example
nisshi topic list