|
|
@ -47,11 +47,28 @@ var ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var rootCmd = &cobra.Command{ |
|
|
|
var rootCmd = &cobra.Command{ |
|
|
|
// TODO: elaborate the usage
|
|
|
|
|
|
|
|
Use: "harmony", |
|
|
|
Use: "harmony", |
|
|
|
Short: "run harmony node", |
|
|
|
Short: "harmony is the Harmony node binary file", |
|
|
|
Long: "run harmony node", |
|
|
|
Long: `harmony is the Harmony node binary file |
|
|
|
Run: runHarmonyNode, |
|
|
|
|
|
|
|
|
|
|
|
Examples usage: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start a validator node with default bls folder (default bls key files in ./.hmy/blskeys) |
|
|
|
|
|
|
|
./harmony |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start a validator node with customized bls key folder |
|
|
|
|
|
|
|
./harmony --bls.dir [bls_folder] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start a validator node with open RPC endpoints and customized ports |
|
|
|
|
|
|
|
./harmony --http.ip 0.0.0.0 --http.port [http_port] --ws.ip 0.0.0.0 --ws.port [ws_port] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start an explorer node |
|
|
|
|
|
|
|
./harmony --run explorer --run.archive --run.shard [shard_id] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start a harmony internal node on testnet |
|
|
|
|
|
|
|
./harmony --run.legacy --network |
|
|
|
|
|
|
|
`, |
|
|
|
|
|
|
|
Run: runHarmonyNode, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var configFlag = cli.StringFlag{ |
|
|
|
var configFlag = cli.StringFlag{ |
|
|
|