Test your internet connection speed and ping using speedtest.net from the CLI
Ensure you have Node.js version 8 installed. Then run the following:
$ npm install --global speed-test
$ speed-test --help
Usage
$ speed-test
Options
--json -j Output the result as JSON
--bytes -b Output the result in megabytes per second (MBps)
--verbose -v Output more detailed information
while true; do sleep 30; node cli.js --verbose --json; done >> ~/net.log
Note: using the "--verbose" and "--json" will include a timestamp e.g: "1603971242534" property generated now in form of a timestamp, good for recording the metrics in some monitoring software.
- fast-cli - Test your download speed using fast.com
MIT © Sindre Sorhus