Arguments and Commands#
Overview#
All command-line options (except for -conf
) may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file. The configuration file is a list of <setting>=<value>
pairs, one per line, with optional comments starting with the #
character.
The configuration file is not automatically created; you can create it using your favorite plain-text editor. By default, dash-qt (or dashd) will look for a file named dash.conf
in the Dash data directory, but both the data directory and the configuration file path may be changed using the -datadir
and -conf
command-line arguments.
Platform |
Path to data folder |
Typical path to configuration file |
---|---|---|
Linux |
~/ |
/home/username/.dashcore/dash.conf |
macOS |
~/Library/Application Support/ |
/Users/username/Library/Application Support/DashCore/dash.conf |
Windows |
%APPDATA% |
(Vista-10) C:\Users\username\AppData\Roaming\DashCore\dash.conf |
Windows |
%APPDATA% |
(2000-XP) C:\Documents and Settings\username\Application Data\DashCore\dash.conf |
📘 Testnet/Devnet modes
Note: if running Dash in testnet mode, the sub-folder
testnet3
will be appended to the data directory automatically. Likewise, if running in devnet mode, the subfolderdevnet-"devnet name"
will be appended to the data directory.
Command Line Arguments#
The following sections provide details of the command line arguments for each of the five components distributed in Dash Core releases.
Component |
Description |
---|---|
dashd |
Dash Core daemon |
dash-qt |
Dash Core wallet GUI |
dash-cli |
Dash Core RPC Client |
dash-tx |
Dash Core transaction utility |
dash-wallet |
Dash Core wallet utility |
dashd#
View all command line options for dashd.
Usage:
dashd [options] Start Dash Core Daemon
dash-qt#
View all command line options for dash-qt.
Usage:
dash-qt [command-line options]
dash-cli#
View all command line options for dash-cli.
Usage:
dash-cli [options] <command> [params] Send command to Dash Core
dash-cli [options] -named <command> [name=value] ... Send command to Dash Core (with named arguments)
dash-cli [options] help List commands
dash-cli [options] help <command> Get help for a command
dash-tx#
View all command line options for dash-tx.
Usage:
dash-tx [options] <hex-tx> [commands] Update hex-encoded dash transaction
dash-tx [options] -create [commands] Create hex-encoded dash transaction
dash-wallet#
👍
Introduced in Dash Core 18.0.0
View all command line options for dash-wallet.
Usage:
dash-wallet [options] <command>