Skip to main content

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:

  1. 📁 Extracts the folder structure
  2. 📦 Detects the tech stack and generates documentation (via OpenAI)
  3. 📂 Analyzes folder structure quality and documents findings
  4. 📝 Creates a clean README.md file
  5. 🐳 Generates a functional Dockerfile
  6. 🚀 Generates CI/CD YAML files (GitHub Actions, etc.)
  7. ✅ 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:

  1. 🧾 Modified files are automatically staged and committed

  2. 📤 Changes are pushed to Git

  3. ⚙️ Triggers the CI/CD pipeline

  4. 📄 Fetches and prints CI/CD logs

  5. 🐳 Builds the Docker image and pushes to Docker Hub

  6. 🔍 AI summarizes logs and metadata:

    • Who committed
    • What changed
    • Pipeline run ID and status
  7. 🖥️ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autodevops-cli-8.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autodevops_cli-8.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file autodevops-cli-8.0.tar.gz.

File metadata

  • Download URL: autodevops-cli-8.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for autodevops-cli-8.0.tar.gz
Algorithm Hash digest
SHA256 e0929cc4ad99b67771b4d8c08867b1803660e1da518c44f2010418b8798bfacd
MD5 861900ae664e2770afcaf4f05e51fc76
BLAKE2b-256 3efa6f7ed9c3782ba70626c8ff341687161a42e6ad09cb5fb389ce43effe2b0e

See more details on using hashes here.

File details

Details for the file autodevops_cli-8.0-py3-none-any.whl.

File metadata

  • Download URL: autodevops_cli-8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for autodevops_cli-8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a048af88e203d8a096443396a1285954e7dea6650a88410c0d9fae47dbd8ece7
MD5 e180121f33d03e0b39df44ddc534aa93
BLAKE2b-256 68c13db6ca2858e320fb72d272305e08d6b8c390be1a7ec304c98ba05794ab7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page