Installing the Corda CLI
Corda CLI (command line interface) is a command line tool that supports various Corda-related tasks. For information about the commands available, see the Corda CLI reference content.
Third-Party Prerequisites
Software | Version |
---|---|
Java | Azul JDK 17 |
Downloading Corda CLI
To obtain the Corda CLI installer, download platform-jars-5.1.0.tar.gz
from the R3 Developer Portal and extract corda-cli-installer-5.1.0.0.zip
from net\corda\cli\deployment\corda-cli-installer\5.1.0.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.1.0.0.zip
.Extract the contents of the
zip
file:unzip ./corda-cli-installer-5.1.0.0.zip -d corda-cli-installer-5.1.0.0
Change directory to the directory extracted from the
zip
file:cd corda-cli-installer-5.1.0.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
.Add
<user-home>/.corda/cli
to your system’sPath
environment variable.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.1.0.0.zip
.Extract the contents of the
zip
file:Expand-Archive .\corda-cli-installer-5.1.0.0.zip
Change directory to the directory extracted from the
zip
file:cd corda-cli-installer-5.1.0.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.Add
<user-home>/.corda/cli
to your system’sPath
environment variable.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.