AI-powered CLI tool for automating DevOps workflows like setup, Git, CI/CD, Docker, and documentation.
Project description
# 🚀 AutoDevOps CLI — AI-Powered DevOps Automation Tool
A simple but powerful **AI-integrated CLI tool** that automates your complete DevOps pipeline — from setup to CI/CD, Docker, and deployment — using **OpenAI**.
📦 **Install Now:**
```bash
pip install autodevops-cli==7.1
🔗 GitHub Repo: https://github.com/kannanb2745/Automated-DevOps
🧠 Why AutoDevOps CLI?
Setting up a DevOps pipeline takes hours of manual effort — from writing Dockerfiles and CI/CD scripts to managing Git pushes and debugging builds. AutoDevOps CLI simplifies all of this into just two commands — powered by AI.
⚙️ Architecture: Two-Step Process
🔧 Step 1: setup <path> — Environment Bootstrapping
Automatically sets up your project directory and generates everything you need:
- 📁 Extracts the folder structure
- 📦 Detects the tech stack and generates documentation (via OpenAI)
- 📂 Analyzes folder structure quality and documents findings
- 📝 Creates a clean README.md file
- 🐳 Generates a functional Dockerfile
- 🚀 Generates CI/CD YAML files (GitHub Actions, etc.)
- ✅ Auto-generates unit testing files based on the codebase
🔮 All this is generated using the OpenAI API with GPT intelligence!
🚀 Step 2: Git-Aware CI/CD + Deployment Automation
When the developer runs the git subcommand, here's what happens:
-
🧾 Modified files are automatically staged and committed
-
📤 Changes are pushed to Git
-
⚙️ Triggers the CI/CD pipeline
-
📄 Fetches and prints CI/CD logs
-
🐳 Builds the Docker image and pushes to Docker Hub
-
🔍 AI summarizes logs and metadata:
- Who committed
- What changed
- Pipeline run ID and status
-
🖥️ You can pull and run the Docker image locally or deploy it to production
🧪 Conflict Detection via MongoDB
To avoid costly merge bugs and debug cycles:
- Every commit’s metadata is stored in MongoDB
- The tool compares modified files across branches
- Detects potential merge conflicts before they happen
⏱️ This saves time, improves code quality, and avoids CI/CD failures.
📦 Installation
Install the CLI globally using pip:
pip install autodevops-cli==7.1
🏁 How to Use
🔧 1. Setup Project Environment
autodevops setup /path/to/your/project
🚀 2. Automate Git + CI/CD + Docker + Log Analysis
autodevops push "Your commit message"
📁 .env Configuration (Required)
Create a .env file in the root of your project with:
OPENAI_API_KEY=your_openai_key
DOCKER_USERNAME=your_dockerhub_username
DOCKER_PASSWORD=your_dockerhub_password
MONGO_URL=your_mongodb_connection_string
🧩 Dependencies
- Python 3.6+
- OpenAI API
- Docker Hub Account
- MongoDB (Cloud or Local)
- GitHub Actions or CI/CD integration
🧑💻 Author
Kannan B 💼 GitHub: @kannanb2745
📄 License
MIT License — Open for contribution and customization.
🙌 Contributions Welcome
Have ideas, suggestions, or improvements? Open an issue or submit a PR on GitHub: https://github.com/kannanb2745/Automated-DevOps
Save hours of setup, debugging, and scripting. Let AutoDevOps CLI handle it all while you focus on shipping great code. 🚀
✅ What's Next?
Now that you have README.md and an updated setup.py:
🔄 Final Steps to Push to PyPI:
# Optional: clean previous builds
rm -rf dist/ build/ *.egg-info
# Step 1: Build the package
python setup.py sdist bdist_wheel
# Step 2: Upload to PyPI
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devops_automation_cli-1.2.tar.gz.
File metadata
- Download URL: devops_automation_cli-1.2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e250d148efa3c19e7fcb20da73443361ce960d5b599062c1931c0dad4e997ccd
|
|
| MD5 |
5d4af9754ff73827b4935199b82a6e91
|
|
| BLAKE2b-256 |
6a9ffbccdfc0e44f68d842af7d3efeddd92afc328b50449f0d3cf8ae55c262e1
|
File details
Details for the file devops_automation_cli-1.2-py3-none-any.whl.
File metadata
- Download URL: devops_automation_cli-1.2-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0bbb20179fe5c246c270866860595c953a5dd6ea1c6cc6877a8a9ac15b17ad6
|
|
| MD5 |
4f008165ae50b4297008f056b2a5c285
|
|
| BLAKE2b-256 |
37c26529def0e46e9da64c9700b22c0d4ceaed2e684380cfefee7ad84e7c83f3
|