NetStats CLI
is a cross-platform command-line tool for monitoring network usage statistics by application. This tool supports both macOS and Linux and is designed to be easy to build and extend.
- Real-time monitoring of network usage by application.
- Cross-platform support for macOS and Linux.
- Lightweight and simple to use.
If you have Homebrew installed, you can install NetStats CLI
using the following command:
brew install yourusername/tap/netstats-cli
-
Go to the Releases page.
-
Download the latest release binary for macOS (
netstats-darwin-amd64
). -
Make the file executable:
chmod +x netstats-darwin-amd64
-
(Optional) Move the file to
/usr/local/bin
for easy access:sudo mv netstats-darwin-amd64 /usr/local/bin/netstats
-
Run
netstats
from any terminal:netstats
-
Go to the Releases page.
-
Download the latest release binary for Linux (
netstats-linux-amd64
). -
Make the file executable:
chmod +x netstats-linux-amd64
-
(Optional) Move the file to
/usr/local/bin
for easy access:sudo mv netstats-linux-amd64 /usr/local/bin/netstats
-
Run
netstats
from any terminal:netstats
To build from source, make sure you have Go installed:
-
Clone the repository:
git clone https://github.com/yourusername/netstats-cli.git cd netstats-cli
-
Build the binary:
# For macOS GOOS=darwin GOARCH=amd64 go build -o netstats-darwin-amd64 # For Linux GOOS=linux GOARCH=amd64 go build -o netstats-linux-amd64
-
Make the file executable and move it to a directory in your
$PATH
:chmod +x netstats-linux-amd64 sudo mv netstats-linux-amd64 /usr/local/bin/netstats
-
Run
netstats
:netstats
After installation, you can run netstats
to start monitoring network usage.
netstats [options]
-a, --all
: Show all applications.-f, --filter <name>
: Filter network usage by application name.
netstats -f chrome
This project is licensed under the MIT License. See the LICENSE file for details.