Skip to content

Wrathchylde75/matic-cli

 
 

Repository files navigation

Matic CLI

🏗 A CLI to setup and manage Matic validator nodes

Installation

Please make sure you have installed following dependencies:

Please refer to this document for more information.

Usage

Create new directory for the setup:

$ mkdir devnet
$ cd devnet

To setup multi-node local network

../bin/matic-cli setup devnet

It will ask you several questions:

Please enter number of validator nodes - Input the number of validator nodes you want to run
Please enter number of non-validator nodes - Input the number of sentry nodes you want to run

After the setup is done, follow these steps:

Start ganache

bash docker-ganache-start.sh

Start all heimdall instances (it will run all services - rabbitmq, heimdall, bridge, server)

bash docker-heimdall-start-all.sh

Setup bor

bash docker-bor-setup.sh

Start bor

bash docker-bor-start-all.sh

Logs

Logs will be at logs/ folder

Clean Setup Remove the devnet folder and you can start the process once again

License

MIT

About

A CLI to setup Matic network

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.7%
  • Shell 12.7%
  • Nunjucks 5.6%