Command-Line Options
Run WorldLand
WorldLand is primarily controlled using the command line. Start it using the worldland command and stop it by pressing Ctrl+C.
bash
./worldlandWith custom flags:
bash
./worldland <flags>You can configure WorldLand using command-line options (flags). WorldLand also has sub-commands that can invoke functions such as console or blockchain import/export.
Config File
As an alternative to passing the numerous flags to the worldland binary, you can also pass a configuration file:
bash
./worldland <other flags> --config /path/to/your_config.tomlGenerating a Config File
To get an idea of how the file should look, you can use the dumpconfig sub-command to export your existing configuration:
bash
./worldland <other flags> dumpconfig >> config.tomlExample (Gwangju testnet):
bash
./worldland -gwangju dumpconfig -datadir /home/worldland/gwangju >> config.tomlCommand-Line Options Reference
A full list of command-line help is listed below. You can always get the same information from your own WorldLand instance by running:
bash
./worldland -helpKey Flags
| Flag | Default | Description |
|---|---|---|
--datadir | ~/.ethereum | Data directory for the databases and keystore |
--gwangju | - | Connect to Gwangju testnet (Chain ID: 10359) |
--port | 30303 | Network listening port |
--http | disabled | Enable the HTTP-RPC server |
--http.port | 8545 | HTTP-RPC server listening port |
--http.addr | 127.0.0.1 | HTTP-RPC server listening address |
--http.api | eth,net,web3 | API modules to offer over HTTP |
--http.corsdomain | - | Comma-separated list of allowed CORS domains |
--ws | disabled | Enable the WebSocket-RPC server |
--ws.port | 8546 | WS-RPC server listening port |
--ws.api | eth,net,web3 | API modules to offer over WebSocket |
--ws.origins | - | Allowed WebSocket origins |
--mine | disabled | Enable mining |
--miner.etherbase | - | Public address for block mining rewards |
--miner.threads | 0 | Number of CPU threads to use for mining |
--verbosity | 3 | Logging verbosity (0=silent, 5=detail) |
--config | - | TOML configuration file path |
--ipcpath | - | IPC socket file path |
--ipcdisable | - | Disable the IPC-RPC server |