Test internet bandwidth from command line on CentOS 7

This article provides steps to install speedtest-cli on CentOS 7, command line utility for testing internet connection using Speedtest.net.

  1. Enable EPEL repository.
  2. Make sure that pip package manager is installed.
  3. Install speedtest-cli:
    pip install speedtest-cli

Now you can test internet connection:
speedtest-cli

Or test internet connection and get URL to Speedtest.net share results image:
speedtest-cli --share