topic
This section lists the Corda CLI
A command line tool that supports various Corda-related tasks, including Corda Package Installer (CPI) creation and Corda cluster management.
topic
sub-commands and arguments. You can use these commands to manually create topics in Kafka
The means by which Corda workers communicate, acting as a central message bus between the worker processes.
, as described in the Manual Bootstrapping section.
Argument | Description |
---|---|
-b, --bootstrap-server | The address of the bootstrap server. |
-k, --kafka-config | The path to the Kafka configuration file. |
-n, --name-prefix | The name prefix for topics. |
create | Creates the required Kafka topics; see create. |
create
The following table lists the create
sub-commands and arguments:
Argument | Description |
---|---|
-r, --replicas | The number of replicas. |
-p, --partitions | The number of partitions. |
-t, --tag | One or more tags associated with topics and their respective number of partitions. For example:-t t01=partitions:3 -t t02=partitions:599999 |
-u, --user | One or more Corda workers and their respective Kafka users. For example:-u crypto=Charlie -u rest=Rob99999 For more information, see Create the Default Topics. |
connect | Connects to the specified server to create the default topics; see Create the Default Topics. |
preview | Generates a preview of the required Kafka topic configuration in YAML; see preview. |
connect
The following table lists the connect
arguments:
Argument | Description |
---|---|
-f, --file | The name of the configuration file to create the topics; see Modify the Topic Configuration Before Creating. |
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
preview
corda-cli.sh topic -b <BOOTSTRAP-SERVERS> -k <CLIENT-PROPERTIES-FILE> create -r <REPLICAS> -p <PARTITIONS> preview
corda-cli.cmd topic -b <BOOTSTRAP-SERVERS> -k <CLIENT-PROPERTIES-FILE> create -r <REPLICAS> -p <PARTITIONS> preview
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.