Metadata-Version: 2.5
Name: cdmctl
Version: 1.5.6
Summary: CDM - Centralized Download Manager CLI
Project-URL: Homepage, https://github.com/radaron/CDMServer/tree/master/cli
Project-URL: Repository, https://github.com/radaron/CDMServer
Author-email: Aron Radics <radaron@radaron.hu>
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Requires-Dist: rich>=13
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# CDM Server CLI

Command-line interface for [CDM Server](../README.md).

## Installation

```bash
pip install cdmctl
```

## Quick Start

```bash
cdm login --server https://your-cdm-server.com
cdm search --pattern "inception"
cdm download --torrent-id 12345 --device-id 1
```

## Commands

| Command | Description |
|---|---|
| `cdm version` | Show CLI version |
| `cdm login` | Login and save credentials |
| `cdm logout` | Clear stored tokens |
| `cdm whoami` | Show current user |
| `cdm search` | Search torrents on nCore |
| `cdm download` | Queue a torrent for download |
| `cdm users` | User management (admin) |
| `cdm devices` | Device management |
| `cdm status` | Download status & control |
| `cdm tmdb` | Browse and search TMDB |
| `cdm wishlist` | Manage wishlist |

Run `cdm <command> --help` for options.

### Wishlist

Add movies by IMDB ID; the server retries weekly until the torrent appears on nCore.

```bash
cdm wishlist types                                              # list quality types
cdm wishlist add --imdb-id tt1375666 --device-id 1 --type hd_hun
cdm wishlist list
cdm wishlist delete --item-id 3
```
