Skip to content

Repository files navigation

nifa Crates.ioLicense

Cross-platform network inspection tool.

It is designed for Linux, macOS, and Windows with a consistent command surface:

nifa <sub-command> [options]

With no sub-command (nifa), it shows the primary network interface summary.

Principles

  • Read-only only: no mutation commands
  • Tree-first output (tree default)
  • Structured output for automation (json / yaml)

Supported Platforms

  • Linux
  • macOS
  • Windows

Installation

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/shellrow/nifa/releases/latest/download/nifa-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/shellrow/nifa/releases/latest/download/nifa-installer.ps1 | iex"

From Releases

You can download precompiled binaries from the releases

Using Cargo

cargo install nifa

Commands

if Network interfaces
addr IP addresses
link Layer 2 information
route Routing table
neigh ARP / NDP entries
sock Sockets (ss/netstat equivalent)
sys Network/system summary
mon TUI monitor

Output Options

All non-TUI commands support:

--format tree|table|json|yaml
--wide
--no-color
--no-truncate

Format behavior

  • Default: tree
  • Use --format table for tabular output

Examples

# Interfaces (summary)
nifa if# Interface details
nifa if show en0
# Addresses
nifa addr
nifa addr --iface en0 --ipv6
# Link layer
nifa link --up
# Routes
nifa route --default
nifa route --ipv4 --detail
# Neighbors
nifa neigh --ipv4 --vendor
# Sockets
nifa sock --proto tcp --listen
nifa sock --proto tcp --established --pid
# System summary
nifa sys
nifa sys --dns
nifa sys --proxy
# TUI monitor
nifa mon --iface en0 --interval 1 --sort total

About

Cross-platform CLI tool for network information

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages