Bandwidth & Speed Tools

Speedtest CLI

Speedtest CLI is Ookla's official command-line client for measuring download, upload, latency, and packet loss without a browser. It runs in scripts and on headless servers, returning machine-readable results that can feed monitoring, logging, or scheduled checks.

Visit official website ↗
✓ Software download·Commercial·Updated November 10, 2026
DeveloperOokla
LicenseCommercial
File size951.2 KB
Languageen-US
Downloads10

Speedtest CLI: Scriptable Internet Speed Measurement

Speedtest CLI measures the connection from a terminal rather than a window. A single command contacts Ookla's server network, picks a nearby test host, records latency, then measures download and upload throughput and reports packet loss along the way. The default output is a short readable summary, and a flag switches it to JSON, JSONL, CSV, or TSV for anything that needs to parse the numbers. Servers can be chosen by identifier or host, the test can be bound to a particular interface or source address, and progress output can be suppressed for clean logs. It exists for servers, containers, and scheduled jobs where nobody is watching a dial.

Where this variant earns its place is repetition. A one-off reading tells you little, but a cron job or CI step that stores a JSON result every fifteen minutes builds a picture of how a line behaves across the day, and alerting on a drop in throughput or a rise in latency becomes possible without a dashboard vendor. The same approach closes the loop after traffic shaping is applied: verify the new ceiling with SoftPerfect Bandwidth Manager, then confirm with a test that the numbers actually landed where the rules intended. Output written to a file, a log pipeline, or a time-series database is easy to graph later, and the interface and server flags make it possible to compare two uplinks from one machine.

Benefits of Using Speedtest CLI

The immediate benefit of Speedtest CLI is that measurement stops depending on a person remembering to run it. Scheduled tests run whether anyone is at a desk, so an intermittent fault that appears at three in the morning finally leaves evidence behind rather than a complaint the next afternoon. Structured output means the numbers go straight into a database or a log search instead of being copied from a screenshot, which makes trend analysis and threshold alerts practical for small teams without extra tooling. Because it needs no graphical session, the same binary works over SSH on a router, inside a container, or on a server in a rack where installing a desktop application would be absurd. It also settles arguments: when a provider insists the line is fine, a dated series of latency and throughput readings is more useful than an opinion. The client is free, installs in a minute, and stays out of the way until asked.

Speedtest CLI features

Key capabilities and highlights.

Feature 1

Download, Upload, Latency, and Packet Loss

One run of Speedtest CLI reports the four numbers that diagnose most complaints: latency to a nearby host, throughput in each direction, and packet loss. Loss matters because a line can post healthy speed figures while shedding packets, which shows up as stuttering calls rather than slow downloads.

Feature 2

Machine-Readable Output Formats

JSON, JSONL, CSV, and TSV output let another program consume the result directly. JSONL suits appending one record per test, while CSV drops neatly into a spreadsheet so a manager can review a week of readings without learning a query language or asking for a dashboard.

Feature 3

Server Selection by ID or Host

Automatic selection in Speedtest CLI picks a nearby server with low latency for the most representative result, but an identifier or hostname can be supplied to pin a test to a specific location. That makes before-and-after comparisons fair, because both runs measure the same endpoint.

Feature 4

Bind the Test to an Interface or Address

On a machine with several network cards, the test can be tied to one interface or source address, so multihomed servers report the uplink you meant to check. Comparing a wired path against a VPN tunnel from the same host becomes a single flagged command.

Feature 5

Script-Friendly Progress and Units

Progress output can be turned off so logs stay clean, and rates can be fixed to bits or bytes per second instead of auto-scaling. Predictable formatting matters when a parser or a regex is downstream, and it removes the ambiguity between Mbps and MB/s in reports.

Feature 6

Unattended Runs After Licence Acceptance

A licence flag accepts Ookla's terms non-interactively, which is what allows the client to run from cron, systemd timers, or a CI pipeline without a prompt blocking the job, and the same setting is easy to bake into a container image so fresh instances measure on first boot.

Feature 7

Cross-Platform, Headless by Design

Builds exist for Windows, macOS, and the common Linux distributions, and none of them need a display server. That covers SSH sessions on a VPS, minimal containers, and remote offices where the only machine available is a headless box with no desktop environment installed.

Feature 8

Same Server Network as the Speedtest Apps

Tests from Speedtest CLI use Ookla's own server fleet rather than a third-party endpoint, so figures line up with what colleagues see in the desktop and mobile apps. Consistency across tools makes it easier to confirm a problem is the connection rather than the measurement.

Old versions

Browse historical releases and previous builds.

No old versions have been added yet.

Frequently asked questions

Common questions about Speedtest CLI.

Is Speedtest CLI free to use?

Yes, it is free to download, though it is proprietary software released under Ookla's licence terms rather than an open-source licence. Running it means accepting those terms, which can be done non-interactively for automated jobs.

Does it need a browser or a graphical desktop?

No. The client runs in a terminal and has no graphical dependencies, which is why it works over SSH on servers, in containers, and on headless machines where a desktop application would never be installed.

How is it different from the Speedtest desktop app?

The measurement engine and server network are the same. Speedtest CLI simply exposes the test as a command with structured output and flags, so it suits scripts and monitoring rather than someone watching a dial.

What output formats does Speedtest CLI offer?

Human-readable text is the default, with JSON, JSONL, CSV, and TSV available through a format flag. Tabular formats can be written with a header row for easier import, and progress reporting can be disabled when the result is piped into another program.

Can I choose which server Speedtest CLI uses?

Yes. By default the client picks a nearby server automatically, but a server identifier or host can be specified, and the list of known servers can be printed. Pinning a server is the right approach when comparing results over time.

Why do results differ from the desktop app?

Small differences come from timing, server choice, and whatever else is using the connection at that moment. If the gap is large, check that both tools used the same server and that no VPN or proxy sits in the path.

Can it report packet loss?

Yes, packet loss is included in the result alongside latency and throughput, which helps distinguish a congested link from one that is simply slow. Loss figures are especially useful when calls or video keep breaking up while speed readings look normal.

Is Speedtest CLI suitable for continuous monitoring?

It is often used that way, with a scheduled job storing each result and an alert firing when throughput falls or latency climbs. Keep the interval sensible, since every run transfers real data, and on metered links that adds up.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Software download

Download Speedtest CLI

Speedtest CLI is Ookla's official command-line client for measuring download, upload, latency, and packet loss without a browser. It runs in scripts and on headless servers, returning machine-readable results that can feed monitoring, logging, or scheduled checks.