JSON config file is the preferred way to configure XMRig. The command line interface does not cover all features, such as mining profiles for different algorithms. Important options can be changed during runtime without miner restart by editing the config file or executing API calls.
Wizard helps you create an initial minimal config file.
Config example shipped with miner binaries and can be found on github .
Config search paths
Path to config file specified by command line option --config or -c.
config.json in the same directory with the miner executable.
.xmrig.json or .config/xmrig.json in the user home directory. #1925