This repository provides a REPL
environment that enables easy testing of
libplanet features.
dotnet 8.0
c# 12.0
git clone https://github.com/s2quake/libplanet-console.git
cd libplanet-console
dotnet publish
It's
publish
, not build.
Run the following command to create a repository for starting 4 nodes and 2 clients at the specified path.
.bin/libplanet-console init .data
Run the following command to start nodes and clients at the specified path.
.bin/libplanet-console start .data
If platform is windows, run
.bin\libplanet-console.exe
.
Create and run a repository for a single node.
.bin/libplanet-node init .node --single-node
.bin/libplanet-node start .node
Once the repository is created, the specified path will contain
node-settings.json
and client-settings.json
files as shown below.
Users can configure various values to run nodes and clients
in different environments.
{
"$schema": "node-settings-schema.json",
"application": {
"port": "55314",
"privateKey": "5a3df2ce7fc8b8f7c984f867a34e7d343e974f7b661c83536c0a66685bdbf04a",
"storePath": "store",
"logPath": "log",
"genesisPath": "genesis",
}
}
Run the following command to display help
.bin/libplanet-console --help