Skip to main content

Merod

Merod is a command-line tool that allows you to initialize, configure and run Calimero nodes.

Installation

You can choose to install merod using either the installation script or Homebrew.

If you use Homebrew, you can install merod directly with the following steps:

Steps​

  1. Add the Calimero Homebrew tap:

    brew tap calimero-network/homebrew-tap
  2. Install merod:

    brew install merod
  3. Verify the installation:

    merod --version

If the version number appears, the installation was successful.

Usage​

Terminal
merod [OPTIONS] --node-name <NAME> <COMMAND>

Commands:​

  • config Configure the node
  • init Initialize node configuration
  • run Run a node
  • relay Relay incoming requests to specific location
  • help Print this message or the help of the given subcommand(s)
tip

Run help to get more information about the available options and commands.

Terminal
merod --help

Options:​

  • --home <PATH> Directory for config and data
  • -n, --node-name <NAME> Name of node
  • -h, --help Print help
  • -V, --version Print version
tip

Default location of the config and data directory is ~/.calimero. You can change the location by using the --home option.

Examples:​

CommandDescription
merod --node-name node1 initInitialize a node with default settings. (server-port = 2428 and swarm-port = 2528`)
merod --node-name node1 init --server-port 2429 --swarm-port 2529Initialize a node with custom ports.
mkdir data && merod --home data/ --node-name node1 initInitialize a node with a custom home directory.
merod --node-name node1 config --server-host 143.34.182.202 --server-port 3000Configure an existing node with a specific server host and port.
merod --node-name node1 runRun a node.
merod --node-name node2 relay --listen 127.0.0.1:3333Relay incoming requests to a specific location.
Was this page helpful?
Need some help? Check Support page