Installing the Corda CLI
Corda CLI (command line interface) is a command line tool that supports various Corda-related tasks, including Corda Package Installer (CPI) creation and Corda cluster management. The CorDapp Standard Development Environment (CSDE) uses Corda CLI in the background. As a result, you must install Corda CLI before using CSDE.
Third-Party Prerequisites
Software | Version |
---|---|
Java | Azul JDK 11 |
Downloading Corda CLI
To obtain the Corda CLI installer from the release pack on Customer Hub:
- Download
platform-jars-Gecko.tar.gz
from the R3 Customer Hub or from the R3 S3 repository. - Extract
corda-cli-installer-5.0.0.0-Gecko1.0.zip
fromnet\corda\cli\deployment\corda-cli-installer\5.0.0.0-Gecko1.0
.
Installing on Linux/macOS
Ensure that you remove any existing installations of Corda CLI by deleting the
<user-home>/.corda/cli
folder.Start a shell session (bash or zsh).
Change directory to where you saved
corda-cli-installer-5.0.0.0-Gecko.zip
.Extract the contents of the
zip
file:unzip ./corda-cli-installer-5.0.0.0-Gecko.zip -d corda-cli-installer-5.0.0.0-Gecko
Change directory to the directory extracted from the
zip
file:cd corda-cli-installer-5.0.0.0-Gecko1.0
Run the install script:
./install.sh
The script installs Corda CLI to
<user-home>/.corda/cli
, where<user-home>
refers to your user home directory. For example, on macOS, this is typically something like/Users/charlie.smith
or on Linux, something like/home/charlie.smith
.Run the following command to verify your installation:
./corda-cli.sh -h
If successful, this outputs details of the Corda CLI commands.
Installing on Windows
Ensure that you remove any existing installations of Corda CLI by deleting the
<user-home>/.corda/cli
folder.Start a Powershell session.
Change directory to where you saved
corda-cli-installer-5.0.0.0--Gecko.zip
.Extract the contents of the
zip
file:Expand-Archive .\corda-cli-installer-5.0.0.0-Gecko1.0.zip
Change directory to the directory extracted from the
zip
file:cd corda-cli-installer-5.0.0.0-Gecko1.0
Run the install script:
.\install.ps1
The script installs Corda CLI to
<user-home>/.corda/cli
, where<user-home>
refers to your user home directory. On Windows, this is typically something likeC:\Users\Charlie.Smith
.If your PowerShell execution policy does not allow you to run this script, copy the contents to your own PowerShell script and execute that instead.Run the following command to verify your installation:
corda-cli.cmd -h
If successful, this outputs details of the Corda CLI commands.
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.