Metadata-Version: 2.2
Name: comfydock
Version: 0.1.2
Summary: ComfyDock CLI
Home-page: https://github.com/yourusername/comfyenv
Author: Your Name
Author-email: your.email@example.com
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: click>=8.1.8
Requires-Dist: comfydock-server>=0.1.4
Dynamic: author
Dynamic: author-email
Dynamic: home-page
Dynamic: requires-python

# ComfyDock CLI

ComfyDock CLI is a CLI tool for managing ComfyUI environments using ComfyDock and Docker. It is currently a wrapper around the ComfyDock server.

## Installation

```bash
pip install comfydock_cli
```

## Usage

ComfyDock CLI provides several commands to manage your ComfyUI Docker environments:

### Getting Help

```bash
comfydock --help       # Show main help
comfydock up --help    # Show help for a specific command
```

### Starting and Stopping the Server

```bash
# Start both backend and frontend (opens in browser automatically)
comfydock up

# Start only the backend server without the frontend
comfydock up --backend

# Stop the running server (both backend and frontend)
comfydock down
```

### Managing Configuration

ComfyDock stores its configuration in `~/.comfydock/config.json`. You can view and modify this configuration with:

```bash
# List all current configuration values
comfydock config --list

# Update a specific config value
comfydock config comfyui_path /path/to/your/ComfyUI

# Interactive configuration mode - prompts for each setting
comfydock config
```

### Configuration Options

Here are the key configuration options you can modify:

- `comfyui_path`: Path to your local ComfyUI installation
- `backend_port`: Port for the ComfyDock backend server (default: 5172)
- `frontend_host_port`: Port for accessing the ComfyUI frontend (default: 8000)
- `frontend_version`: Version tag for the frontend container (default: 0.1.3)
- `allow_multiple_containers`: Whether to allow running multiple ComfyUI containers (default: false)

The configuration is automatically created with sensible defaults on first run.

### Workflow

A typical workflow might look like:

1. Install with `pip install comfydock_cli`
2. Configure your ComfyUI path: `comfydock config comfyui_path /path/to/comfyui`
3. Start the server: `comfydock up`
4. Use ComfyDock in your browser
5. When finished, stop the server with ctrl+c or `comfydock down`
