Developers

Command-line interface

Typer commands available through main.py.

Help

.\.venv\Scripts\python.exe main.py --help
.\.venv\Scripts\python.exe main.py cli --help

Translation commands live under the cli group.

Translate

.\.venv\Scripts\python.exe main.py cli translate `
  --input .\book.epub `
  --model qwen3.5-9b `
  --concurrent 2 `
  --source en `
  --target fr

Main options:

  • --input, -i: EPUB, PDF, DOCX, MD or TXT;
  • --model, -m;
  • --endpoint, -e;
  • --api-key;
  • --api-type;
  • --concurrent, -c, from 1 to 32;
  • --source, -s and --target, -t;
  • --glossary, -g.

Status

.\.venv\Scripts\python.exe main.py cli status

Beware of old commands

translate and status belong to the cli group: use main.py cli translate and main.py cli status.