Page 1 of 1

How to install and use Ookla Speedtest CLI on Debian/Ubuntu

Posted: Tue Dec 09, 2025 12:05 pm
by isscbta
Here is a quick guide on how to install and use the official Ookla Speedtest CLI on Debian/Ubuntu based systems.

1. Add Ookla Speedtest repository

Code: Select all

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
2. Install Speedtest CLI

Code: Select all

sudo apt install speedtest
3. List available Ookla servers

Code: Select all

speedtest -L
This will print a list of the closest Ookla servers. The first column in the output is the server ID.

4. Run speed test against a specific server

Replace [SERVER_ID] with the ID from the list above:

Code: Select all

speedtest -s [SERVER_ID]
Example:

Code: Select all

speedtest -s 12345
That is all, you now have a simple way to test network speed directly from your server’s terminal using specific Ookla servers.