ntw
A macOS network toolkit providing real-time speed metrics and simple Wi-Fi interface management.
ntw is a fast, minimal CLI utility focused on two things:
- Live network throughput monitoring
- Managing preferred Wi-Fi networks on macOS
It is written in Rust, async-first, and designed to feel native to the macOS command line.
Features
Real-time network speed
- Live download / upload monitoring
- Per-interface monitoring
- Configurable units:
bps,kbps,mbps,gbps - Automatic default interface detection (macOS)
Wi-Fi network management (macOS)
- List preferred Wi-Fi networks for an interface
- Remove a specific network by SSID
- Interactive multi-select removal
- Parallel removals for speed
--dry-runmode to preview actions safely
Platform Support
- macOS only (for now)
- Linux / Windows (compile-time error by design)
ntw relies on macOS system tools such as networksetup and route.
Installation
From source
Using Cargo
# or
Usage
Display real-time network speed
By default:
- Interface is auto-detected (falls back to
en0oreth0) - Unit is
Mbps - Output updates every second (by default)
You can change the update interval with the --delay option:
The displayed throughput is normalized to "per second" regardless of the actual interval.
Specify interface and unit
Output updates every second (by default):
↓ 85.42 Mbps ↑ 12.03 Mbps
Manage Wi-Fi networks
List preferred networks
With explicit interface:
Remove a specific network
Interactive removal (multi-select)
You will be prompted to select one or more networks to remove.
Dry-run mode
All network-modifying commands support --dry-run:
Output example:
[dry-run] Would remove network 'MyWifi' from interface 'en0'
No system changes are made.
Credits
- Async runtime powered by Tokio
- System metrics via sysinfo
- CLI parsing via clap
- Interactive prompts via inquire
Contributing
Issues and PRs are welcome: https://github.com/alexandretrotel/ntw/issues
License
See LICENSE for details.