package heading-link-icon

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. package arguments. You can use these commands to execute operations for working with CPB Corda Package Bundle. A signed ZIP/JAR collection of CPKs that forms a complete application suite and contains all the code that a virtual node must operate, minus the specific network details. and CPI Corda Package Installer. A signed ZIP/JAR combination of a CPB and a Group Policy File that defines not only the application code that a virtual node will run, but also the details of the MGM with which to register, and the details of network PKI requirements. files, as described in the Packaging section for CorDapp Developers.

ArgumentDescription
--create-cpbCreates a CPB file. See create-cpb.
--create-cpiCreates a CPI file. See create-cpi.

The create-cpb argument creates a CPB file from a set of CPK Corda Package. A signed ZIP/JAR library of Java code packaged to be portable with all of its dependencies and version information contained within it. files using the following arguments:

ArgumentDescription
--cpb-nameSpecifies a name for the CPB.
--cpb-versionSpecifies the CPB version.
--fileSpecifies the name of the CPB file to create.
--keystoreSpecifies the keystore file used to sign the file.
--storepassSpecifies the password for the keystore.
--keySpecifies the name of the key.

For example:

./corda-cli.sh package create-cpb \
 mycpk0.cpk mycpk1.cpk \
 --cpb-name manifest-attribute-cpb-name \
 --cpb-version manifest-attribute-cpb-version \
 --file output.cpb \
 --keystore signingkeys.pfx \
 --storepass "keystore password" \
 --key "signing key 1"
 ./corda-cli.cmd package create-cpb `
 mycpk0.cpk mycpk1.cpk `
 --cpb-name manifest-attribute-cpb-name `
 --cpb-version manifest-attribute-cpb-version `
 --file output.cpb `
 --keystore signingkeys.pfx `
 --storepass "keystore password" `
 --key "signing key 1"

The create-cpi argument creates a CPI file using the following arguments:

ArgumentDescription
--cpbSpecifies the CPB file to include in the CPI. This can be omitted when creating an MGM CPI.
--group-policySpecifies the group policy A JSON file containing network information that is bundled with a CPB to create a CPI. file to include in the CPI.
--cpi-nameSpecifies a name for the CPI.
--cpi-versionSpecifies the CPI version.
--fileSpecifies the name of the CPI file to create.
--keystoreSpecifies the keystore file used to sign the file.
--storepassSpecifies the password for the keystore.
--keySpecifies the name of the key.

For example:

./corda-cli.sh package create-cpi \
 --cpb mycpb.cpb \
 --group-policy TestGroupPolicy.json \
 --cpi-name "cpi name" \
 --cpi-version "1.0.0.0-SNAPSHOT" \
 --file output.cpi \
 --keystore signingkeys.pfx \
 --storepass "keystore password" \
 --key "signing key 1"
 ./corda-cli.cmd package create-cpi `
 --cpb mycpb.cpb `
 --group-policy TestGroupPolicy.json `
 --cpi-name "cpi name" `
 --cpi-version "1.0.0.0-SNAPSHOT" `
 --file output.cpi `
 --keystore signingkeys.pfx `
 --storepass "keystore password" `
 --key "signing key 1"
Previous
mgm

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.