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-cpb | Creates a CPB file. See create-cpb. |
--create-cpi | Creates 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-name | Specifies a name for the CPB. |
--cpb-version | Specifies the CPB version. |
--file | Specifies the name of the CPB file to create. |
--keystore | Specifies the keystore file used to sign the file. |
--storepass | Specifies the password for the keystore. |
--key | Specifies 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 |
---|---|
--cpb | Specifies the CPB file to include in the CPI. |
--group-policy | Specifies the group policy file to include in the CPI. |
--cpi-name | Specifies a name for the CPI. |
--cpi-version | Specifies the CPI version. |
--file | Specifies the name of the CPI file to create. |
--keystore | Specifies the keystore file used to sign the file. |
--storepass | Specifies the password for the keystore. |
--key | Specifies 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"
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.