A Python Typer-based CLI with small DevOps utilities for health snapshots, port inspection, Docker cleanup, and generating a basic nginx reverse proxy config.
- System health command using psutil
- Listening port inspection via ss
- Dry-run Docker prune helper
- Nginx config file generator
devops_tool.py— CLI commandsrequirements.txt— Runtime dependencies
- Python 3.9+
- ss for the ports command
- Docker CLI for docker-clean
- Optional nginx knowledge to validate generated config
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.txtpython3 devops_tool.py healthpython3 devops_tool.py ports --port 8080python3 devops_tool.py docker-clean --dry-runpython3 devops_tool.py nginx-config example.com 127.0.0.1:9000 --out ./nginx.conf- 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.
- Commands are local-only
- No Windows-specific support
- Docker cleanup has no preview beyond printing the command