How to check internet bandwidth from command line on Ubuntu Linux

speedtest-cli is Command line interface for testing internet bandwidth using speedtest.net.