Deploying a CorDapp

To deploy to a Corda 5 Developer Preview network, you must use a Corda package bundle file (.cpb file) which contains both workflows and contracts packages.

  1. Apply the CorDapp CPK Gradle plugin to a Gradle project and generate the .cpk files. See CorDapp CPK Gradle plugin .

  2. Assemble your .cpk files into a single .cpb file using the CorDapp Builder CLI. See CorDapp Builder CLI .

  3. To deploy your CorDapp, perform one of the following steps:

    • Deploy your CorDapp to all nodes in the running network using this command:

      corda-cli pkg install -n <network-name> <cpb-file-location>

      For example:

      corda-cli pkg install -n network-example-name */build/libs/*.cpb

    • Deploy your CorDapp to only one of the nodes in the network using this command:

      corda-cli pkg install -n <network-name> -m <node-name> <cpb-file-location>

      For example:

      corda-cli pkg install -n network-example-name -m bob */build/libs/*.cpb

    Step result: The pkg install command copies the .cpb file to the node’s CorDapps directory and restarts the node container.

  4. Verify the status using the corda-cli network status -n <network-name> command.

    Step result: The Deployed apps section appears in the command’s output.

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.