corda/docs/source/cli-application-shell-extensions.rst
Ben Wyeth a1f7c4f2f4 corda-2781 replace manual versions with substitutions (#4927)
* been through the docs manually and picked out substitutions

* hopefully addressing the url inconsistencies
2019-03-25 12:20:26 +00:00

2.9 KiB

Shell extensions for CLI Applications

Installing shell extensions

Users of bash or zsh can install an alias and auto-completion for Corda applications that contain a command line interface. Run:

java -jar <name-of-JAR>.jar install-shell-extensions

Then, either restart your shell, or for bash users run:

. ~/.bashrc

Or, for zsh run:

. ~/.zshrc

You will now be able to run the command line application from anywhere by running the following:

<alias> --<option>

For example, for the Corda node, install the shell extensions using

java -jar corda-|corda_version|.jar install-shell-extensions

And then run the node by running:

corda --<option>

Upgrading shell extensions

Once the shell extensions have been installed, you can upgrade them in one of two ways.

  1. Overwrite the existing JAR with the newer version. The next time you run the application, it will automatically update the completion file. Either restart the shell or see above<installing-shell-extensions> for instructions on making the changes take effect immediately.

  2. If you wish to use a new JAR from a different directory, navigate to that directory and run:

    java -jar <name-of-JAR>

    Which will update the alias to point to the new location, and update command line completion functionality. Either restart the shell or see above<installing-shell-extensions> for instructions on making the changes take effect immediately.

List of existing CLI applications

Description Alias JAR Name
Corda node<starting-an-individual-corda-node> corda --<option> corda-|corda_version|.jar
Network bootstrapper<network-bootstrapper> bootstrapper --<option> corda-tools-network-bootstrapper-|corda_version|.jar
Standalone shell<standalone-shell> corda-shell --<option> corda-tools-shell-cli-|corda_version|.jar
Blob inspector<blob-inspector> blob-inspector --<option> corda-tools-blob-inspector-|corda_version|.jar