topic

This section lists the Corda CLI topic arguments. You can use these commands to manually create or delete topics in Kafka, as described in the Manual Bootstrapping Tutorial.

Argument
Description
-b, --bootstrap-serverThe address of the bootstrap server.
-k, --kafka-configThe path to the Kafka configuration file.
-n, --name-prefixThe name prefix for topics.
-rThe number of replicas.
-pThe number of partitions.
connectConnects to the specified server; see Topic Creation by Direct Connection
-fThe name of the script file genrated; see Topic Creation by Scripting.
-cThe number of topics to create in parallel; see Topic Creation by Scripting.
createCreates Kafka topics; see create.
deleteDeletes Kafka topics; see delete.

create

corda-cli.sh topic -b <BOOTSTRAP-SERVERS> -k config.properties \
  create -r <REPLICAS> -p <PARTITIONS> connect
corda-cli.sh topic -b <BOOTSTRAP-SERVERS> -k config.properties \
  create -r <REPLICAS> -p <PARTITIONS> connect
corda-cli.cmd topic -b <BOOTSTRAP-SERVERS> -k config.properties create -r <REPLICAS> -p <PARTITIONS> connect

delete

corda-cli.sh topic -b <BOOTSTRAP-SERVERS> delete connect
corda-cli.sh topic -b <BOOTSTRAP-SERVERS> delete connect
corda-cli.cmd topic -b <BOOTSTRAP-SERVERS> delete connect

Was this page helpful?

Thanks for your feedback!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.

We're sorry this page wasn't helpful. Let us know how we can make it better!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Create an issue

Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.