> Markdown version of [/magazine/609-how-to-test-your-network-speed-in-the-terminal](https://www.wearedevelopers.com/magazine/609-how-to-test-your-network-speed-in-the-terminal). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # How to Test Your Network Speed in the Terminal **By:** [Daniel Cranney](https://www.wearedevelopers.com/@daniel-cranney) **Published:** July 31, 2025 _“Is the internet down?”_. We’ve all asked this question once or twice. You’ve got an important online presentation to deliver, or an all-hands to join, or all of your sudden your internet feels slow and throttled. The chances are, in that moment, you hopped on Google in a panic and searched ‘speed test’ (almost definitely ending up on the [Ookla Speed Test](https://www.speedtest.net/) page). But, did you know you can run a speed test without even using a browser? Here’s how… **TLDR:** You can run an Ookla Speed Test in the terminal with `speedtest`, or use `networkQuality` on macOs. Alternatively, watch the video below for a 30 second guide. ## Approach 1: Using Ookla’s SpeedTest Package If you want to run a test and save the results for later, start off installing the [Ookla Speed Test CLI](https://www.speedtest.net/apps/cli) package. ### Installing the Ookla Speed Test CLI As I’m on macOS I’ll use Homebrew, but if you visit the link above you can see alternative installation guides. brew tap teamookla/speedtest brew install speedtest Once it’s installed, we’re going to (read and) accept the terms and conditions and privacy policy, before simply running the following in the terminal to start the test: speedtest ### Saving Your Result Once the test is complete, you can view the summary of the test in the terminal, or follow the URL to save your results for later. # Approach 2: Using the Built-In Speed Tester on macOS If you’re using macOS (with Monterey, aka iOS 12 or later) then there’s actually an in-built speed tester you might not know about. To use it, simply run the following in your terminal: networkQuality If you combine it with the `-v` flag (for verbose), you’ll get more in-depth results, as well as a `responsiveness` attribute, that is intended to give you a realistic idea of how your network is performing while under strain (such as when watching a video). ## Watch It If you’d prefer to see how to run a network speed test in your terminal in video format, watch below and don’t forget to [subscribe to our YouTube channel](https://www.youtube.com/@_wearedevs) for more tips and tricks. https://www.youtube.com/embed/A19kfXClRyc ## Related Articles - [5 Underrated Things You Can Do with Preview and QuickTime on Mac](https://www.wearedevelopers.com/magazine/612-5-underrated-things-you-can-do-with-preview-and-quicktime-on-mac) - [Benefits of Using JMeter For Performance Testing](https://www.wearedevelopers.com/magazine/96-benefits-of-using-jmeter-for-performance-testing) - [The Overflow: 4 Tools for Fast File Sharing](https://www.wearedevelopers.com/magazine/697-the-overflow-4-tools-for-fast-file-sharing) - [Finder Tips and Tricks: Upgrade Your Workflow on macOS](https://www.wearedevelopers.com/magazine/541-finder-tips-and-tricks-upgrade-your-workflow-on-macos) ## Related Videos - [Catching up on the basics you don't really need that much code](https://www.wearedevelopers.com/videos/903-catching-up-on-the-basics-you-don-t-really-need-that-much-code) - [Frontend Performance Testing in practice](https://www.wearedevelopers.com/videos/8-frontend-performance-testing-in-practice) - [3x Performance: A Humbling Journey](https://www.wearedevelopers.com/videos/100165-3x-performance-a-humbling-journey) - [Optimizing Your App for Success: Tips and Techniques for managing slow devices](https://www.wearedevelopers.com/videos/655-optimizing-your-app-for-success-tips-and-techniques-for-managing-slow-devices) ## Related Jobs - [Technical Support Engineer 2](https://www.wearedevelopers.com/jobs/ext/171621-technical-support-engineer-2) at **Twilio** - [Engineer, Offensive Security Organization](https://www.wearedevelopers.com/jobs/ext/1992296-engineer-offensive-security-organization) at **Twilio** - [IT Systems Engineer](https://www.wearedevelopers.com/jobs/ext/185938-it-systems-engineer) at **Intercom** - [Software Engineer, Platform Engineering (L2)](https://www.wearedevelopers.com/jobs/ext/1956829-software-engineer-platform-engineering-l2) at **Twilio** - [iOS Engineer, Swift/SwiftUI/Combine (B2C Broker)](https://www.wearedevelopers.com/jobs/ext/1611832-ios-engineer-swift-swiftui-combine-b2c-broker) at **Bitpanda** - [Network Automation Engineer](https://www.wearedevelopers.com/jobs/48187-network-automation-engineer) at **Burda**