mLab Speed Test CLI is a Node.js command-line tool for testing your internet speed using the Measurement Lab (M-Lab) NDT7 network diagnostic infrastructure, powered by the open-source @m-lab/ndt7 client. M-Lab's platform is a collaborative effort supported by partners including Google and Cloudflare.
Install globally with npm:
npm install -g mlab-speedtest-cliOr run it directly without installing, using npx:
npx mlab-speedtest-cli --runOnce installed globally, run your first speed test:
mlab-speedtest --runThat's it — download speed, upload speed, server selection, and latency are tested automatically.
-
User-Friendly CLI Enjoy a simple and intuitive command-line interface for seamless network testing.
-
Quick Speed Tests Perform fast download and upload speed measurements with minimal configuration.
-
Automatic Server Selection Effortlessly selects the optimal server for accurate results.
-
Flexible Commands Use versatile commands to execute different tests and view results.
-
Instant Results Get immediate feedback on test results directly in the terminal.
Run any of the commands below from your terminal after installing the package.
| Command | Alias | Description |
|---|---|---|
mlab-speedtest --help |
-h |
Shows available commands and usage instructions |
mlab-speedtest --server |
-s |
Selects the most efficient server for testing |
mlab-speedtest --download |
-d |
Tests download speed |
mlab-speedtest --upload |
-u |
Tests upload speed |
mlab-speedtest --run |
-r |
Runs a full test: download, upload, server selection, and latency |
mlab-speedtest --results [params] |
-res [params] |
Displays the latest test results (params optional) |
Example:
mlab-speedtest --results 5🚀 bathiatuss/mlab-speedtest-tui — Go-based sibling project with a full developer API + terminal UI.
Contributions are welcome! To contribute:
-
Fork the repository and clone it locally:
git clone https://github.com/bathiatuss/mlab-speedtest-cli.git cd mlab-speedtest-cli npm install -
Link the package locally to test your changes as the
mlab-speedtestcommand:npm install -g . -
Create a new branch:
git checkout -b feature/feature-name
-
Make your changes, test them, then commit and open a pull request.
This project is licensed under the Apache-2.0 License.
For more information, visit the project repository or open an issue.
