For a CLI-only setup, install the wireshark-cli package.

Wireshark and its CLI tools are typically pre-installed. If not, use sudo apt install wireshark .

Downloading and installing the command-line tools—primarily TShark—allows you to capture and analyze network traffic directly from a terminal or remote server without needing a graphical user interface. Downloading Wireshark Command Line by Platform

While you can download the official installer, you can also use command-line methods to automate the process. 2.3. Installing Wireshark under Windows

The following methods allow you to set up the Wireshark command-line environment across different systems. Linux Distributions