This guide covers the basic usage of Dashmate, including running nodes and common operations.
The Dashmate CLI can be used to perform routine tasks. Invoke the CLI with dashmate. To list available commands, either run dashmate with no parameters or execute dashmate help. To list the help on any command, execute the command followed by the --help option.
For detailed documentation on each command, see the Commands section.
The setup command is used to quickly configure common node configurations. See Node Setup for details.
Supported presets:
mainnet- a node connected to the Dash main networktestnet- a node connected to the Dash test networklocal- a full network environment on your machine for local development
Example:
$ dashmate setup testnetThe config command is used to manage your node configuration. See Configuration Commands for details.
The start command starts a node with the default or specified config. See Start Node for details.
Example:
$ dashmate startThe stop command stops a running node. See Stop Node for details.
Example:
$ dashmate stopThe restart command restarts a node. See Restart Node for details.
Example:
$ dashmate restartThe status command outputs status information about the node. See Status Commands for details.
Example:
$ dashmate statusThe core cli command executes a dash-cli command to the Core container. See Core CLI for details.
Example:
$ dashmate core cli "getblockcount"
1337The reset command removes all data for a node. See Reset Command for details.
Example:
$ dashmate resetTo run a full node instead of a masternode, modify the config setting:
$ dashmate config set core.masternode.enable falseFor managing multiple nodes together, especially for local development, see Node Groups.
If you want to use Docker Compose directly with Dashmate configurations, you can:
- Output a config to a dotenv file:
$ dashmate config envs --config=testnet --output-file .env.testnet- Use the dotenv file with Docker Compose:
$ docker compose --env-file=.env.testnet up -dTo set up a local development environment:
- Use the
setupcommand with thelocalpreset to generate configs and set up a local network - For testing changes to DAPI and Drive, specify a local path using the
platform.sourcePathconfig option
For common issues and solutions, see the Troubleshooting Guide.