Skip to content

biprajit007/devops-cli-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devops-cli-tool

A Python Typer-based CLI with small DevOps utilities for health snapshots, port inspection, Docker cleanup, and generating a basic nginx reverse proxy config.

Key features

  • System health command using psutil
  • Listening port inspection via ss
  • Dry-run Docker prune helper
  • Nginx config file generator

Project structure

  • devops_tool.py — CLI commands
  • requirements.txt — Runtime dependencies

Requirements

  • Python 3.9+
  • ss for the ports command
  • Docker CLI for docker-clean
  • Optional nginx knowledge to validate generated config

Setup

git clone https://github.com/biprajit007/devops-cli-tool.git
cd devops-cli-tool
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

Usage

Health snapshot

python3 devops_tool.py health

Inspect a port

python3 devops_tool.py ports --port 8080

Dry-run Docker cleanup

python3 devops_tool.py docker-clean --dry-run

Generate nginx config

python3 devops_tool.py nginx-config example.com 127.0.0.1:9000 --out ./nginx.conf

Safety notes

  • Keep docker-clean in dry-run mode unless you explicitly want to remove unused Docker resources.
  • Generated nginx config is a starter template and should be reviewed before deployment.

Limitations / next improvements

  • Commands are local-only
  • No Windows-specific support
  • Docker cleanup has no preview beyond printing the command

About

Simple Python CLI for day-to-day DevOps helper tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages