speedtest-cli
Speedtest-cli is a command-line tool used to measure internet speed by testing the upload and download speed of your network connection. It is written in Python and utilizes the popular Speedtest.net service. The tool uses the same technology as the Speedtest.net website to provide accurate results.
Once installed, you can initiate the speed test by executing the "speedtest-cli" command in your terminal. It will then communicate with the nearest Speedtest.net server and perform the upload and download tests. The tool can also display additional information like ping latency and the server's geographic location.
Speedtest-cli supports multiple units for displaying the results, such as bits, kilobits, megabits, bytes, kilobytes, and megabytes. You can specify the desired unit using command-line options.
Since it is a command-line tool, it is particularly useful when you want to automate or script speed tests, especially on remote servers or headless systems without graphical user interfaces.
Speedtest-cli has extensive configuration options that allow you to customize various aspects of the test, such as target servers, HTTP method, HTTP headers, timeout, and more. These options provide flexibility for fine-tuning the speed test according to your specific requirements.
The tool also supports logging the results to a file, making it easy to track speed variations over time or create reports.
Speedtest-cli is an open-source project available on GitHub, which allows developers to learn from its code, contribute to its development, or even fork it for their specific needs.
Being a command-line tool, it can run on various operating systems, including Linux, macOS, Windows, and even on FreeBSD.
Overall, speedtest-cli offers a convenient and efficient way to perform speed tests directly from the command line, making it a popular choice for users who prefer the terminal interface or need to automate speed tests in their workflows.
List of commands for speedtest-cli:
-
speedtest-cli:tldr:333f3 speedtest-cli: Run a speed test and generate an image of the results.$ speedtest-cli --sharetry on your machineexplain this command
-
speedtest-cli:tldr:5b620 speedtest-cli: Run a speed test and display the results as JSON (suppresses progress information).$ speedtest-cli --jsontry on your machineexplain this command
-
speedtest-cli:tldr:5d5d8 speedtest-cli: Run a speed test and display values in bytes, instead of bits.$ speedtest-cli --bytestry on your machineexplain this command
-
speedtest-cli:tldr:80bb2 speedtest-cli: List all `speedtest.net` servers, sorted by distance.$ speedtest-cli --listtry on your machineexplain this command
-
speedtest-cli:tldr:aa68a speedtest-cli: Run a speed test without performing download tests.$ speedtest-cli --no-downloadtry on your machineexplain this command
-
speedtest-cli:tldr:caf2c speedtest-cli: Run a speed test using `HTTPS`, instead of `HTTP`.$ speedtest-cli --securetry on your machineexplain this command
-
speedtest-cli:tldr:cf2b8 speedtest-cli: Run a speed test.$ speedtest-clitry on your machineexplain this command
-
speedtest-cli:tldr:cfebf speedtest-cli: Run a speed test to a specific speedtest.net server.$ speedtest-cli --server ${server_id}try on your machineexplain this command