CLI
What is CLI
Section titled “What is CLI”CLI stands for Command Line Interface.
humanode-peer is a command line application, and it exposes a CLI as all the other console commands do.
General CLI layout
Section titled “General CLI layout”humanode-peer is an executable with multiple subcommands. If no subcommands are specified, it will run as a Humanode blockchain node (we call it “run command”). If a subcommand is specified, the relevant subcommand will be executed.
To learn about the available subcommands, flags and options use the --help flag:
$ humanode-peer --helpHumanode is built on top of the Substrate framework, and we reuse most of the CLI from the standard Substrate layout.
Please refer to the Substrate documentation to learn more about the standard Substrate CLI:
You would typically run your blockchain node with the following arguments.
$ humanode-peer --chain your-chainspec.jsonFor development, it is nice to use --dev flag:
$ humanode-peer --devRun command
Section titled “Run command”We have a few flags that we’ve added on top of the standard Substrate CLI for the run command.
For the rest of the flags, please see the Substrate documentation as referred in the #general-cli-layout section.
Bioauth flags and options
Section titled “Bioauth flags and options”There is a list of bioauth-related options and flags.
| Bioauth options | Description |
|---|---|
—robonode-url <ROBONODE_URL> | The URL of robonode to authenticate with. Optional, typically set in chainspec so you don’t have to pass it manually. |
—webapp-url <WEBAPP_URL> | The URL to use for the web app. Used to print the QR Code to the console. Optional, typically set in chainspec so you don’t have to pass it manually. |
—rpc-url <RPC_URL> | The URL to pass to the web app to connect to the node RPC. If not passed, a URL with WebSocket scheme and Mutually exclusive with other options setting the RPC URL. |
—rpc-url-ngrok-detect | Detect RPC URL from |
—rpc-url-ngrok-detect-from <TUNNEL_NAME> | The tunnel name at [default: |
| What RPC URL scheme to prefer. [default: |
—rpc-url-unset | Explicitly unset the RPC URL. Might be useful if you want to do something exotic, but generally, you’d want the RPC URL set. |