package

This section lists the Corda CLI package arguments. You can use these commands to execute operations for working with CPB and CPI files, as described in the CorDapp Packaging tutorial.

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

create-cpb

The create-cpb argument creates a CPB file from a set of CPK files using the following arguments:

Argument
Description
--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.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"

create-cpi

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

Argument
Description
--cpbSpecifies the CPB file to include in the CPI.
--group-policySpecifies the group policy 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.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
Next
topic

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.