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.
Comments