Commands
This section describes the commands available from nodechain
. For more general information at the command line, append the -h
or --help
, such as nodechain -h
.
For more information about a specific nodechain
command, append the -h
or --help
flag after the command, such as nodechain start --help
.
start
Initiates the Connector or any node. By default will prompt an interface.
Syntax
Example
Options
-h
or--help
: Shows command help information.-a
or--all
: Initializes all the nodes of the network specified as a parameter
Syntax
Example
stop
Stop the Connector or any node. By default will prompt an interface.
Syntax
Example
Options
-h
or--help
: Shows command help information.-a
or--all
: Stop all the nodes of the network specified as a parameter
Syntax
Example
status
Display the status of the services. By default will prompt an interface.
Syntax
Example
Options
-h
or--help
: Shows command help information.
General options (flags)
--blockchain
Also -b
Specifies the absolute path to the folder where the blockchain files will be stored.
Syntax
Example
--certs
Also -c
Specifies the absolute path to the folder with the SSL certificates.
Syntax
Example
To enable SSL you need to have the files nodechain_cert.key
and nodechain_cert.crt
in the specified path. This filenames are mandatory.
--config
Also -g
Specifies the configuration via command line in JSON format
Syntax
Example
Use single quotation marks to wrap your JSON string
--defaultconfig
Use the default configuration to start the node
Syntax
Example
--help
Also -h
Shows general help information
Syntax
--local
Use a local node. This command will start the blockchain using the docker-composes
Syntax
Example
--network
Also -n
Specifies the network of the node.
Syntax
Example
--port
Also -p
Specifies the Connector port.
Syntax
Example
--remote
Use a remote node. This command won't start the blockchain using the docker-composes.
Syntax
Example
--ssl
Enable SSL in the Connector.
If this flag is specified, you will need to specify the directory of the certificates by means of its flag or the interface.
Syntax
Example
--sslport
Also -sp
Specify the Connector SSL port.
Syntax
Example
--token
Also -t
Selects a blockchain by its token from command line.
Syntax
Example
--verbose
Also -v
Increase output verbosity.
Syntax
Example
--version
Also -V
Returns the version of NodeChain you're running.
Syntax
Last updated