| Crates.io | speedtest-cli |
| lib.rs | speedtest-cli |
| version | 0.1.0 |
| created_at | 2026-01-05 17:24:53.137337+00 |
| updated_at | 2026-01-05 17:24:53.137337+00 |
| description | A fast and simple CLI tool to test internet connection speed with real-time progress indicators |
| homepage | https://github.com/VillegasMich/speedtest-cli |
| repository | https://github.com/VillegasMich/speedtest-cli |
| max_upload_size | |
| id | 2024277 |
| size | 65,611 |
A fast and simple command-line tool to test your internet connection speed, written in Rust.
cargo install speedtest-cli
Clone and build:
git clone https://github.com/yourusername/speedtest-cli.git
cd speedtest-cli
cargo build --release
The binary will be available at target/release/speedtest-cli
Build and install in one step:
git clone https://github.com/yourusername/speedtest-cli.git
cd speedtest-cli
cargo install --path .
This will compile the binary and install it to ~/.cargo/bin/ (which should be in your PATH). After installation, you can run speedtest-cli from anywhere.
To uninstall:
cargo uninstall speedtest-cli
Run a full speed test (download + upload):
speedtest-cli start
Test download speed only:
speedtest-cli download
Test upload speed only:
speedtest-cli upload
Use the --unit or -u flag to specify the output unit:
speedtest-cli start --unit mbps # Megabits per second (default)
speedtest-cli download -u kbps # Kilobits per second
speedtest-cli upload --unit gbps # Gigabits per second
speedtest-cli start -u bps # Bits per second
Available units:
bps - bits per secondkbps - kilobits per secondmbps - megabits per second (default)gbps - gigabits per secondEnable detailed logging with the --verbose or -v flag:
speedtest-cli start --verbose
speedtest-cli download -v
# Quick download test with default settings
speedtest-cli download
# Full test showing results in Kbps
speedtest-cli start -u kbps
# Upload test with verbose logging
speedtest-cli upload -v
# Download test in Gbps with debug info
speedtest-cli download --unit gbps --verbose
Get help for any command:
speedtest-cli --help
speedtest-cli start --help
speedtest-cli download --help
speedtest-cli upload --help
=> Running full speed test (download + upload)...
Speed Test Results
===================
Download Speed: 48.42 Mbps
Upload Speed: 25.08 Mbps
clap - Command-line argument parsingtokio - Async runtimereqwest - HTTP clientenv_logger & log - Loggingcolored - Terminal colorsthiserror - Error handlingfutures-util - Async utilitiesThe tool performs speed tests by:
Results are calculated in bytes per second and converted to your chosen unit.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Made with ❤️ and Rust