Skip to content

sohag-cli is a command-line tool designed to streamline and automate common development tasks. It provides a simple interface for managing projects, generating boilerplate code, and improving developer productivity. Ideal for developers looking for efficient workflows and customizable solutions.

License

Notifications You must be signed in to change notification settings

sohag47/sohag-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sohag-cli

A simple CLI tool to display your local and public IP addresses, MAC addresses, and check the status of custom application ports. Useful for developers and network admins to quickly view network info and monitor running services.

Features

  • Show local IP and MAC addresses for all network interfaces
  • Display your public IP address
  • Check status of custom ports (active/inactive, PID, URL)
  • Easily edit your custom port list

Installation

You need Node.js installed.

Note: This package is intended to be installed globally.

npm install -g sohag-cli

Or, if you want to use locally, run commands with npx:

npx sohag ip

Usage

Show IP and MAC info

sohag ip

Check custom ports status

sohag ports

Edit your custom ports list

sohag ports-edit

This opens your ports-list.json file in Notepad (Windows) or Nano (Linux/macOS). Add or modify entries as needed.

How It Works

  • On first run, a file ports-list.json is created in your home directory under .sohag-cli.
  • The ip command shows all local IPv4 addresses and MACs, plus your public IP.
  • The ports command checks each port in your custom list and shows if it's active, its PID, and the associated URL.
  • The ports-edit command lets you edit your custom port list easily.

Example ports-list.json

[
  { "name": "App1", "port": "3000", "url": "http://localhost:3000" },
  { "name": "App2", "port": "8080", "url": "http://localhost:8080" },
  { "name": "App3", "port": "5000", "url": "http://localhost:5000" }
]

Author

Minhazul Islam Sohag minhazul.islamcse@gmail.com

About

sohag-cli is a command-line tool designed to streamline and automate common development tasks. It provides a simple interface for managing projects, generating boilerplate code, and improving developer productivity. Ideal for developers looking for efficient workflows and customizable solutions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published