Installation on Ubuntu / Debian:
sudo apt-get install python-pip
sudo pip install speedtest-cli
Launch Example:
speedtest
speedtest --server 2137
I will give a list of possible launch options and describe them:
-h, –help (help)
–bytes (display values in bytes instead of bits)
–share (at the end of the test display a link to the image with the results)
–simple (easy mode, only basic information is displayed)
–list (display a list of servers)
–server SERVER (speed test to the specified server)
–mini MINI (link to Speedtest Mini server)
–source SOURCE (source IP address for the test, used if multiple addresses are assigned to the network adapter)
–timeout TIMEOUT (HTTP timeout in seconds, default 10)
–version (version)
See also my article:
Installing and using Speedtest CLI