Description The subcommands can be used to interact with local p2p network connections.
Subcommands
Connect — Start a new connection to a peer.
Disconnect — Close an existing connection.
Status — Status of existing connection.
Peers — Status of all existing peers.
Start a new connection to a peer.
(string) host
— The hostname:port to connect to (required).
No options required for this subcommand.
$ cleos net connect <host>
Connect to 'hostname:port'.
$ cleos net connect hostname:port
Close an existing connection.
(string) host
— The hostname:port to disconnect from (required).
No options required for this subcommand.
$ cleos net disconnect <host>
Disconnect from 'hostname:port'.
$ cleos net disconnect hostname:port
Status of existing connection.
(string) host
— The hostname:port to query status of connection (required).
No options required for this subcommand.
$ cleos net status <host>
$ cleos net status hostname:port
Given, a valid, existing 'hostname:port' parameter the above command returns a JSON response looking similar to the one below:
{"peer": "hostname:port","connecting": false/true,"syncing": false/true,"last_handshake": { // Structure explaining in detail in the Network Peer Protocol documentation section...}}
Status of all existing peers.
No parameters required fot this subcommand.
No options required for this subcommand.
$ cleos net peers