Speedtest CLI is the official command-line tool from Ookla that allows you to measure your server's internet speed (download, upload, and ping) directly from the console. It is ideal for monitoring your server's network performance and outputting results in machine-readable formats like JSON or CSV for automation and monitoring.
Are you considering hosting this service yourself? We guide you step-by-step through the setup and configuration, showing you everything you need to know.
Before setting up Speedtest CLI, you should prepare your system. This includes updating your operating system to the latest version. This preparation ensures a stable environment and helps avoid issues during or after installation.
To ensure your system runs with the latest software and security updates, always perform a system update first. This way, you have the newest security patches and software versions before proceeding.
Once the necessary preparations are complete, you can start installing the Speedtest CLI application. Download Speedtest CLI for Windows (x64) here: https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-win64.zip
Then start the installation of the downloaded file and follow the on-screen instructions.
Speedtest CLI does not use a traditional configuration file but can be customized via command-line options and environment variables. This allows you to optimize it for consistent and automated use:
--server <ID>: Select a specific server by ID for more consistent and comparable test results.--bytes: Displays speeds in bytes per second instead of bits.--simple: Outputs only ping, download, and upload values in a compact format.--jsonor--csv: Useful for automation and logging as results are saved in machine-readable formats.- Proxy support: Configure environment variables like
http_proxyorhttps_proxyto run speedtest-cli behind a proxy.
For repeated use with the same options, it is recommended to create a shell alias or a small wrapper script. This way, you can quickly start speedtest-cli while ensuring a consistent output format.
Congratulations! You have successfully installed and configured Speedtest CLI on your VPS. We also recommend checking out the following resources that can help you with further server configuration:
- Speedtest.net/apps/cli – Official website
Do you have specific questions that were not answered here? Our team is available daily for further questions or support – just get in touch with us! 🙂