# cloudflare-speed-cli

> CLI tool that runs Cloudflare network speed tests with TUI interface, history tracking, and JSON export

Stars: 1.1k · Categories: Network

- Repository: https://github.com/kavehtehrani/cloudflare-speed-cli
- Page: https://www.trmn.sh/tools/cloudflare-speed-cli

## Install

- Homebrew: `brew tap kavehtehrani/tap && brew install cloudflare-speed-cli`
- Cargo: `cargo install --git https://github.com/kavehtehrani/cloudflare-speed-cli --features tui`
- Arch Linux: `pacman -S cloudflare-speed-cli`

## Overview

cloudflare-speed-cli is a network speed testing tool that connects to Cloudflare's speed test service to measure download/upload throughput, idle latency, and loaded latency. The tool provides a terminal user interface (TUI) with real-time charts and statistics, allowing users to monitor network performance interactively.

The tool stores test history locally and supports exporting results as JSON for further analysis. It offers multiple output modes including the default TUI, text mode for scripting, and headless JSON mode. Users can bind tests to specific network interfaces or source IP addresses for targeted network analysis.

Built in Rust, the tool is primarily aimed at network administrators, developers, and system administrators who need to regularly monitor network performance or integrate speed testing into scripts and automated workflows. The tool leverages Cloudflare's distributed infrastructure to provide consistent speed test measurements from various global locations.

### Installation

```bash
# via Homebrew
brew tap kavehtehrani/tap && brew install cloudflare-speed-cli
```

```bash
# via Cargo
cargo install --git https://github.com/kavehtehrani/cloudflare-speed-cli --features tui
```

```bash
# via Arch Linux
pacman -S cloudflare-speed-cli
```

![TUI interface showing speed test results](https://media.trmn.sh/cached/8c590c8f411a408b9736c7ef76271353947e30da38e8f4f6a860d06a0d65244f.png)

![Real-time charts view](https://media.trmn.sh/cached/9530e5b6774d09366c7d663f3879e9c42e334a6bb02eb626e515f35243f09d5e.png)

![History and statistics view](https://media.trmn.sh/cached/b59900eb5e10a54471d33d83ebc92d62266340b7a528f3bdf6dfdeea6d107275.png)

## Alternatives

- [dstp](https://www.trmn.sh/tools/dstp.md): CLI tool that runs common networking tests (ping, DNS, TLS, HTTP) against websites and IP addresses (1.3k stars)
- [amfora](https://www.trmn.sh/tools/amfora.md): Terminal-based Gemini protocol client with tabbed browsing, TOFU validation, and theming support (1.4k stars)
- [elinks](https://www.trmn.sh/tools/elinks.md): Text-based web browser with frame/table support, scripting, and extensive customization options (C, 643 stars)
- [adguardian-term](https://www.trmn.sh/tools/adguardian-term.md): Terminal-based real-time traffic monitoring and statistics dashboard for AdGuard Home instances (1.7k stars)
- [bitchat-tui](https://www.trmn.sh/tools/bitchat-tui.md): Terminal UI client for BitChat, a peer-to-peer chat protocol that runs over Bluetooth Low Energy without internet connection (378 stars)

---

Canonical: https://www.trmn.sh/tools/cloudflare-speed-cli
