EMC CLI Download and Mining

1. EMC CLI Download

Visit the EMC test network

Visit EMC Test Network: https://earn.emc.network/

Connect wallet

As shown in the above figure, click [Connect Walllet] to proceed.

From the pop-up window, select your preferred wallet from the list on the left. Next, in the wallet plugin interface, complete the steps in the wallet Chrome extension: "Connect" -> "Authorize" -> "Sign".

Note: During the wallet connection process, follow the prompt to switch to the EMC Testnet network (Visit EMC Testnet RPC Information).

Once connected, you can view your points and use an invitation code to invite friends.

Install and Operate EMC CLI Program

After the wallet connection is completed, you can proceed and click the [Install] button in the image and select [CLI] from the dropdown list.

Choose [Windows] for the download and installation.

As shown above, select [Windows] for download and installation.

EMC CLI Files

Locate the "EMC_Miner_Windows" folder on your local device. The file structure is shown below:

emc_miner_cli.exe The command line program for EMC testnet miningï¼›

run_cli_help.cmd Runs the command to view the help documentationï¼›

run_cpu_only.cmd Runs the command to enable CPU-only miningï¼›

run_gpu_only.cmd Runs the command to enable GPU-only miningï¼›

2. EMC CLI Mining Operations

AI mining modes:

  • Basic mining

  • Advanced mining

Basic Mining

Basic mining lets you choose between CPU-only or GPU-only mining.

EMC CLI CPU-Only Mining

Runrun_cpu_only.cmd,right-click, and select "Run as Administrator"

Enter your private key to start CPU mining. EMC CLI automatically detects your hardware, initializes, and connects to the node. The information shown confirms successful CPU mining and rewards earned.

Note:

  1. Before running run_cpu_only.cmd, make sure the address has enough Gas fees (see the section on getting Gas fees). Otherwise, errors will occur, and mining won't start.

  2. To view your CPU mining rewards, go to the EMC testnet explorer and enter your mining address.

  3. To stop mining, press Ctrl + C in the command terminal and enter Yto confirm.

EMC CLI GPU Mining

Run run_gpu_only.cmd, right-click, and select "Run as Administrator." In the command terminal, enter your private key.

As shown in the image, before starting GPU mining, ensure that the Windows version of Docker is successfully installed and the Docker service is running. Otherwise, mining cannot proceed.

Note:

  1. Before running run_cpu_only.cmd, ensure that the address has sufficient gas fees (access the gas fee allocation section). Otherwise, an error will occur, preventing successful mining.

  2. To clearly understand and verify CPU mining earnings, enter your mining address in the EMC testnet browser to check.

  3. During mining, press Ctrl + C in the command line terminal to stop mining. In the command prompt that appears, enter Y to confirm the termination operation.

EMC CLI Advanced Mining

EMC CLI advanced mining supports simultaneous CPU and GPU mining, as well as enabling multi-threaded mining.

emc_miner_cli Command Line Parameters

First, locate the parent directory of the emc_miner_cli.exe program, for example: "D:\EMC_Miner_Windows-1.5.0\EMC_Miner_Windows\". Then, in the CMD terminal, enter the relevant commands as shown in the image:

Refer to the help documentation by entering the following command:

emc_miner_cli.exe -h

Description :

  • cpu_enable : Enable or disable CPU mining.

  • cpu_thread Specifies the number of CPU threads to use.

  • gpu_enable : Enable or disable GPU mining.

  • - gpu_model : Specify the GPU serial number to use.

  • gpu_thread Specifies the number of GPU threads to use.

  • miner_private : Your wallet private key (required).

EMC CLI Advanced CPU Mining

Default CPU miningIn the CMD client, enter the following command and press the Enter key:

emc_miner_cli.exe --cpu_enable=true --gpu_enable=false --miner_private=<your_wallet_private_key>

As shown in the image above, the default CPU mining is successful.

Multi-threaded CPU Mining

In the CMD client, enter wmic to check the number of CPU cores and threads on the computer:

The image shows that the local computer's CPU has 24 cores and 32 threads. Then, enter the mining command and press the Enter key:

emc_miner_cli.exe --cpu_enable=true --gpu_enable=false --cpu_thread=counts --miner_private=your wallet private key
  • Description :

    • Number of threads: Set according to the number of your CPU cores (for example, use 10 threads).

    • Your wallet private key: Replace with your actual wallet private key

The figure shows that EMC CLI successfully mined CPU with 10 threads.

EMC CLI Advanced GPU Mining

Specify GPU serial number for mining

For devices with multiple graphics cards installed, EMC CLI supports specifying a GPU serial number for mining.

View GPU serial number

Before starting GPU mining, you need to check the available GPU serial numbers in your computer.In the CMD terminal, enter the following command and press the Enter key:

emc_miner_cli.exe -g

Specify GPU miningIn the cmd end point, enter the following:

emc_miner_cli.exe --cpu_enable=false --gpu_enable=true --gpu_model=<GPU_number> --miner_private=<your_wallet_private_key>

As shown in the above figure, GPU 1 is designated for mining.

Note:

Before starting mining, ensure that the Docker Engine is running. Otherwise, the following error occurs:

Multi-threaded GPU mining

At the cmd end point, enter the mining command and press Enter :

emc_miner_cli.exe --cpu_enable=false --gpu_enable=true --gpu_model=<GPU_serial_number> --gpu_thread=<number_of_threads> --miner_private=<your_wallet_private_key>
  • Description :

    • GPU serial number : The selected GPU serial number.

    • Number of threads : The number of threads allocated to the GPU mining task (e.g., using 4 threads).

    • Your wallet private key : Replace with your actual wallet private key

As shown in the above figure, specify graphics card 1 and start 4 processes for GPU mining.

EMC CLI CPU and GPU Dual Mining

To improve overall mining efficiency, EMC CLI supports multi-threaded participation in both CPU and GPU mining simultaneously.In the CMD terminal, enter the mining command and press the Enter key:

emc_miner_cli.exe --cpu_thread=<number_of_threads> --gpu_model=<GPU_serial_number> --gpu_thread=<number_of_threads> --miner_private=<your_wallet_private_key>
  • Description :

    • GPU serial number : The selected GPU serial number.

    • Line CPU thread count : The number of threads allocated to the CPU mining task (e.g., using 10 threads).

    • Number of line GPU threads : The number of threads allocated to the GPU mining task (e.g., using 4 threads).

    • Your wallet private key : Replace with your actual wallet private key

As shown in the image above, specify GPU 1 and allocate 4 processes for GPU mining and 10 processes for CPU mining.

Last updated