How to get Ookla’s Speedtest CLI on Windows/Ubuntu/macOS?

Ookla’s Speedtest CLI
  1. Windows 7/8/10
  2. Ubuntu
  3. macOS


1. WINDOWS 7/8/10

  1. Head over to
  2. Scroll down to find Download for Windows button & click on the button to download the file.
  3. The file is a .zip file that gets downloaded.
  4. Open the folder which contains the file.
  5. If you have WinRAR, well and good else we can manage with the default Windows Extraction tool.
  6. You need to extract the zip file downloaded by right-clicking the file and extract it.
  7. There will be 2 files from the zip when extracted, speedtest.exe &
  8. is a ReadMe file that contains all the information about Speedtest CLI for windows. We are only interested in speedtest.exe.
  9. Create a directory anywhere on your system with a name related to Speedtest and place the speedtest.exe in the folder.
  10. It’s preferable to extract the zip directly in some directory where you usually install applications. But then, the choice is yours. If this much is done, we have completed Part 1 of the process successfully.
Extracting with WinRAR
  1. Open up your Windows Start Menu and search env & click on Edit the system environment variables.
  2. A new System Properties window opens up. Click on Environment Variables Button.
  3. You might be able to see 2 sections, namely User Variables, and System Variables.
  4. Under User Variables, there will be an entry as Path. Double click it or click it and press on Edit.
  5. Another window should pop up right now, here you need to click on New to enter a new entry.
  6. The new entry is nothing but the directory path in which you placed speedtest.exe.
  7. The entry should be something similar to my last entry. If you have finished all the steps, that marks the successful completion of Part 2 of the process. All we got to do now is to test it on CLI.
Adding the environment variable
--version     Check the version of the CLI tool
--help Prints usage information
-a Decimal prefix(bps, kbps, Mbps, Gbps)
-A Decimal prefix(B/s, kB/s, MB/s, GB/s)
Speedtest on Windows

Life grants nothing to us mortals without Hardwork. But, don’t worry cuz all that pain you took makes you look cooler!

2. UBUNTU (or any Debian Distro)

  1. Fire up a new terminal by pressing Ctrl + Alt + T.
  2. Type in:
    sudo apt install speedtest-cli
  3. That’s it. The installation is finished.
Installing Speedtest-CLI on Ubuntu
--bytes   Display values in bytes instead of bits.
--json show basic information in JSON format. Speed in bit/s
--share Generate and provide a URL to the
Speedtest on Ubuntu

The animation on Ubuntu looks cheap. Windows and macOS have better animation but the installation process is the easiest on Ubuntu. A Small Price to Pay for Salvation.

3. macOS

  1. Fire up a terminal and type in this to install brew
    /bin/bash -c "$(curl -fsSL"
  2. It will ask for your permission and password a few times. It installs certain tools required for brew and installs brew as well.
  3. Then, type in:
brew tap teamookla/speedtest
brew update
brew install speedtest --force
-a            Decimal prefix(bps, kbps, Mbps, Gbps)
-A Decimal prefix(B/s, kB/s, MB/s, GB/s)

Installing on macOS was as easy as brew-ing a cup of Coffee, right guys??!!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Vanity URLs for Stability and Easier Sharing

Summary of what I learned in Design Pattern: State

Terragrunt — Keeping your Terraform code DRY

Casbin OpenResty Example

Mafia 3 Mac Download Free

Detail Explanation of Incremental Model in DBT

Building Trees with Elm

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
JOSEPH Blessingh

JOSEPH Blessingh

More from Medium

How To Automate Connect, Generate And Add An SSH Key To A Server

How to install an SSL Certificate on Qmail?

How to use mv command in Linux?

Building a CLI in Bash