A command-line tool for managing Shardus test networks.
npm install -g @shardeum-foundation/tools-shardus-cli-network
shardus-network <command> [options]
create
(alias:create-net
) - Create a new test networkstart
(alias:start-net
) - Start a stopped test network, or create a new onestop
(alias:stop-net
) - Stop a test networkrestart
(alias:restart-net
) - Restart nodes or archiversclean
(alias:clean-net
) - Clean the state of all instances in a test netconfig
(alias:config-net
) - Set the config file for all nodes in the network directoryls
(alias:list-net
) - List all the shardus pm2 processespm2
- Run a pm2 command in the test network dir
git clone https://github.com/shardeum/tools-cli-shardus-network.git
cd tools-cli-shardus-network
npm install
The project uses Jest for testing. To run the tests:
npm test
npm run compile