LinuxCommandLibrary

speedtest-cli

TLDR

Run speed test

$ speedtest-cli
copy
Simple output
$ speedtest-cli --simple
copy
List servers
$ speedtest-cli --list
copy
Use specific server
$ speedtest-cli --server [12345]
copy
JSON output
$ speedtest-cli --json
copy
No download test
$ speedtest-cli --no-download
copy
No upload test
$ speedtest-cli --no-upload
copy
Show bytes
$ speedtest-cli --bytes
copy

SYNOPSIS

speedtest-cli [--simple] [--server id] [--json] [options]

DESCRIPTION

speedtest-cli tests internet speed from command line. It uses Speedtest.net servers.
Simple mode shows key metrics. Ping, download, upload in minimal format.
Server selection targets specific locations. List shows nearby servers.
Share generates result image URL. Easy sharing of results.
Machine-readable output enables automation. JSON and CSV formats.

PARAMETERS

--simple

Simple output.
--list
List servers.
--server ID
Specific server.
--json
JSON output.
--csv
CSV output.
--no-download
Skip download test.
--no-upload
Skip upload test.
--bytes
Show bytes/second.
--share
Generate share URL.
--secure
Use HTTPS.

CAVEATS

Python-based, needs installation. Server availability varies. Results differ from browser.

HISTORY

speedtest-cli was created by Matt Martz as a CLI for Speedtest.net. It enables automated and scripted speed testing.

SEE ALSO

iperf(1), fast(1), curl(1)

Copied to clipboard