CLI for internet speed test via cloudflare
CLI for internet speed test via cloudflare
A CLI tool that displays network speed test results from Cloudflare's speed test service in a TUI interface.
--compare-ip-versions), or force a single family with -4/--ipv4-only and -6/--ipv6-only--traceroute)--proxy)--certificaterun with --help to see full list of features
My preferred way if you have cargo installed:
cargo install cloudflare-speed-cliTo install the latest unreleased version from git instead:
cargo install --git https://github.com/kavehtehrani/cloudflare-speed-cli --features tuiThis works for both older Intel and newer Silicon Mac computers.
brew tap kavehtehrani/tap
brew install cloudflare-speed-cliSupports both Intel and Apple Silicon Macs. The package is available on the official MacPorts repository and can be installed with:
sudo port install cloudflare-speed-cliFor the lazy:
curl -fsSL https://raw.githubusercontent.com/kavehtehrani/cloudflare-speed-cli/main/install.sh | shAs other people have kindly contributed, I've merged their pull requests for the distro they have contributed toward. My main OS is Ubuntu and Fedora, and the main distribution mechanism for this package is via 'cargo-dist' which I have found helpful in generating the compatible binaries via github actions. If you would like to contribute for other distros, please open an issue or send in a pull request.
The package can be installed from the official repositories:
pacman -S cloudflare-speed-cli nix run github:kavehtehrani/cloudflare-speed-cliDownload the static binary for your system from the latest release.
Note: I have checked the binaries on Linux (x64 and ARM64) and on Windows 11 but I do not have an Apple device. If there is any issue please do let me know!
If you have docker installed you can run the speedtest by pulling in the image:
docker pull ghcr.io/kavehtehrani/cloudflare-speed-cli:latest
docker run --rm -it ghcr.io/kavehtehrani/cloudflare-speed-cliIf you also want the history of runs to persist, then you have to mount a volume, e.g.
docker run --rm -it -v cloudflare-speed-data:/root/.local/share/cloudflare-speed-cli ghcr.io/kavehtehrani/cloudflare-speed-cli
Run with the TUI (default):
cloudflare-speed-cliText output mode:
cloudflare-speed-cli --textTo see all options:
cloudflare-speed-cli --helpUses endpoints from speed.cloudflare.com You can read more about how Cloudflare's speedtest works here.
Contributions and comments are very welcome! Please feel free to open issues or pull requests.
No open issues yet, or sync has not completed.