Metadata-Version: 2.4
Name: ezdeploy-cli
Version: 0.1.1
Summary: A local CLI tool to detect environment details and generate Dockerfiles for EzDeploy.
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# EzDeploy CLI

A lightweight, zero-dependency local environment auto-detector for the EzDeploy platform.

The EzDeploy CLI tool is designed to be installed locally in your development environment (like your VS Code terminal). It intelligenty analyzes your current local environment, matching your OS, Python version, CUDA drivers, and exact code imports to generate perfectly locked base files for cloud deployment. 

## Installation

Install directly via `pip` inside your active virtual environment or terminal:

```bash
pip install ezdeploy-cli
```

*(Note: The package is incredibly lightweight and utilizes only native Python standard libraries so it won't bloat your environment).*

## Usage

Navigate to the root directory of your Python project in your terminal:

```bash
cd /path/to/my/project
```

### 1. Detect Locally
To scan your environment and generate `requirements.txt` and `Dockerfile` locally so you can review them:

```bash
EzDeployCLI detect
```
- Scans `nvcc`, `nvidia-smi` and local `torch` logic to find your exact CUDA drivers.
- Resolves your exact minor Python version (e.g., `3.10.11`).
- Uses AST parsing to trace the exact libraries imported in your codebase and locks them using your local pip registry.

### 2. Detect & Auto-Push
If your project is already set up with Git and connected to a remote repository, you can generate the files, commit them, and push them to your repository in a single command:

```bash
EzDeployCLI detect --push
```
*(You can also use the alias `EzDeployCLI detect&&push`)*

## Connect to EzDeploy Cloud

Once your `Dockerfile` and `requirements.txt` are pushed to your GitHub repository:
1. Open the [EzDeploy Console](https://ezdeploy.oryvoai.com/console).
2. Select your repository.
3. In the Deployment Wizard, choose **"Enhance Existing Dockerfile"**.
4. The EzDeploy AI pipeline (powered by GPT-5) will automatically ingest the highly-accurate base file generated by the CLI, injecting robust cloud production patterns (Non-root user policies, Gunicorn setups, multi-stage cleanup) specifically aligned to your hardware snapshot!
