Skip to main content

Node CLI

This page will guide you through the CLI fields available for the node and other tools from the mx-chain-go repository.

Introduction

Command Line Interface for the Node and the associated Tools

The Command Line Interface of the Node and its associated Tools is described at the following locations:

Examples

For example, the following command starts an Observer Node in Shard 0:

./node --rest-api-interface=localhost:8080 \
--log-save --log-level=*:DEBUG --log-logger-name \
--destination-shard-as-observer=0 --start-in-epoch\
--validator-key-pem-file=observer0.pem

While the following starts a Node as a Metachain Observer:

./node --rest-api-interface=localhost:8080 \
--use-log-view --log-save --log-level=*:DEBUG --log-logger-name \
--destination-shard-as-observer=metachain --start-in-epoch\
--validator-key-pem-file=observerMetachain.pem