/mLab-speed-test-cli

A Network Speed Test CLI app developed with Node.js and ndt7 Network Diagnosis Tools created by M-Lab Labs. Powered by Measurement Lab - Google

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Measurement Lab Logo Google Inc. Node.js Logo

mLab Speed Test CLI

mLab Speed Test CLI is a Node.js application that provides a command-line interface (CLI) for accessing the Measurement Lab (M-Lab) speed testing system developed by Google Inc. This tool allows users to test their internet speed and view the results.

Contents

🎉 Features

  • Internet Speed Testing: Tests download and upload speeds, and ping times.
  • Command-Line Interface: Performs test operations through various commands.
  • Results Viewing: Displays test results immediately.

🚀 Installation

To get started with this project, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/bathiatuss/mLab-speed-test-cli.git
  2. Navigate to the Project Directory:

    cd mLab-speed-test-cli
  3. Install Dependencies:

    npm install
  4. Install Globally:

    To make the mlab-speed-test command available globally, run:

    npm install -g .

📋 Usage

You can run the following commands to perform speed test operations from the command line:

Commands

  • Help (--help, -h):

    Shows available commands and usage instructions.

    mlab-speed-test --help
    mlab-speed-test -h
  • Get Server (--server, -s):

    Selects the most efficient server for testing.

    mlab-speed-test -server
    mlab-speed-test -s
  • Download Test (--download, -d):

    Tests the download speed.

    mlab-speed-test --download
    mlab-speed-test -d
  • Upload Test (--upload, -u):

    Tests the upload speed.

    mlab-speed-test --upload
    mlab-speed-test -u
  • Start Test (--run, -r):

    Starts the speed test process for download speed, upload speed, most efficient server and network latency.

    mlab-speed-test --run
    
    mlab-speed-test -r
  • Show Results (--results [params], -res [params]):

    Displays the latest test results. "params" is optional.

    mlab-speed-test --results
    
    mlab-speed-test -res 5

👏 Contributing

To contribute to this project, please follow these steps:

  1. Fork the Repository and Clone It to Your Local Machine.

  2. Create a New Branch:

    git checkout -b feature/feature-name
  3. Make Your Changes and Test Them.

  4. Commit Your Changes and Open a Pull Request.

📄 License

This project is licensed under the Apache-2.0 License.


For more information and assistance, you can refer to the project repository or reach out with any issues.