Go Client Commands

Overview

If you have the Diode Client installed, in a terminal window, you can type diode to get a list of commands and diode <command> --help to get detailed help via the command line.

Name
diode - Diode network command line interface

SYNOPSYS
diode [-allowlists=] [-api=false] [-apiaddr=localho...]
[-bind=] [-blocklists=] [-configpath=] [-cpuprofile=]
[-dbpath=/home/d...] [-debug=false] [-diodeaddrs=] [-e2e=true]
[-fleet=] [-keepalive=true] [-keepalivecount=4] [-keepaliveidle=30ns]
[-keepaliveinterval=5ns] [-logdatetime=false] [-logfilepath=] [-memprofile=]
[-metrics=false] [-retrytimes=3] [-retrywait=1ns] [-rlimit_nofile=0]
[-timeout=5ns] COMMAND <args>

COMMANDS
bns Register/Update name service on diode blockchain.
config Manage variables in the local config store.
httpd Enable a public http server as is used by the "diode.link" website
publish Publish ports of the local device to the Diode Network.
reset Initialize a new account and a new fleet contract in the network. WARNING deletes current credentials!
socksd Enable a socks proxy for use with browsers and other apps.
time Lookup the current time from the blockchain consensus.

diode bns

Name
diode bns - Register/Update name service on diode blockchain.

SYNOPSYS
diode bns <args>

ARGS
-lookup string
Lookup a given BNS name.
-register string
Register a new BNS name with <name>=<address>.
EXAMPLE
diode bns -register hello-world=0x......

diode config

Name
diode config - Manage variables in the local config store.

SYNOPSYS
diode config <args>

ARGS
-delete value
deletes the given variable from the config
-list
list all stored config keys
-set value
sets the given variable in the config
-unsafe
display private keys (disabled by default)
EXAMPLE
diode config -delete lvbn2 -delete lvbn

diode httpd

Name
diode httpd - Enable a public http server as is used by the "diode.link" website

SYNOPSYS
diode httpd <args>

ARGS
-allow_redirect
allow redirect all http transmission to httpsd
-certpath string
Pem format of certificate file path of httpsd secure server (default "./priv/cert.pem")
-fallback string
how to resolve web2 addresses (default "localhost")
-httpd_host string
host of httpd server listening to (default "127.0.0.1")
-httpd_port int
port of httpd server listening to (default 80)
-httpsd_host string
host of httpsd server listening to (default "127.0.0.1")
-httpsd_port int
port of httpsd server listening to (default 443)
-privpath string
Pem format of private key file path of httpsd secure server (default "./priv/priv.pem")
-proxy_host string
host of socksd proxy server (default "127.0.0.1")
-proxy_port int
port of socksd proxy server (default 1080)
-secure
enable httpsd server
-socksd
enable socksd proxy server
EXAMPLE
diode httpd -httpd_port 8080 -httpsd_port 443 -secure -certpath ./cert.pem -privpath ./priv.pem

diode publish

Name
diode publish - Publish ports of the local device to the Diode Network.

SYNOPSYS
diode publish <args>

ARGS
-private value
expose ports to private users, so that user could connect to
-protected value
expose ports to protected users (in fleet contract), so that user could connect to
-proxy_host string
host of socksd proxy server (default "127.0.0.1")
-proxy_port int
port of socksd proxy server (default 1080)
-public value
expose ports to public users, so that user could connect to
-socksd
enable socksd proxy server
EXAMPLE
diode publish -public 80:80 -public 8080:8080 -protected 3000:3000 -protected 3001:3001 -private 22:22,0x......,0x...... -private 33:33,0x......,0x......

diode reset

Name
diode reset - Initialize a new account and a new fleet contract in the network. WARNING deletes current credentials!

SYNOPSYS
diode reset <args>

ARGS
-experimental
send transactions of fleet deployment and device allowlist at seme time
EXAMPLE
diode reset

diode socksd

Name
diode socksd - Enable a socks proxy for use with browsers and other apps.

SYNOPSYS
diode socksd <args>

ARGS
-fallback string
how to resolve web2 addresses (default "localhost")
-socksd_host string
host of socks server listening to (default "127.0.0.1")
-socksd_port int
port of socks server listening to (default 1080)
EXAMPLE
diode socksd -socksd_port 8082 -socksd_host 127.0.0.1

diode time

Name
diode time - Lookup the current time from the blockchain consensus.

SYNOPSYS
diode time <args>

ARGS
Empty
EXAMPLE
diode time


How did we do?


Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)