-
-
Notifications
You must be signed in to change notification settings - Fork 8
CLI Usage
Lord0fTurk edited this page Jan 28, 2026
·
4 revisions
The RenLocalizer CLI (run_cli.py) is designed for automation, remote server usage, or advanced batch processing.
Launch the CLI without arguments to enter the Interactive Mode:
python run_cli.pyFor automation, pass arguments directly.
python run_cli.py "/path/to/game" --target-lang es --engine local_llm --mode full| Argument | Description |
|---|---|
--target-lang |
Code of the target language (e.g., tr, es, ru). |
--engine |
google, deepl, openai, gemini, local_llm. |
--mode |
full (Extract + Translate) or translate (Translate existing files). |
--deep-scan |
Enable AST-based deep scanning. |
--rpyc |
Read directly from binary RPYC files. |
--force-ui |
Force translation of all UI elements. |
-
Full Mode (
--mode full): The comprehensive workflow. It expects a game directory or EXE. It extracts RPA archives, normalizes encodings, and translates everything. -
Translate Mode (
--mode translate): For projects that are already unpacked. It scans for.rpy/.rpymcfiles and performs the text translation.
The CLI version is lightweight and doesn't require a GUI. You can run it on a Linux VPS or in a GitHub Action:
# Example script for a cloud server
python run_cli.py "./GameProject" \
--target-lang tr \
--engine gemini \
--mode full \
--deep-scanIn case of failure, the CLI writes a detailed diagnostic report to error_output.txt in the project root. Check this file to see which file or line caused the issue.
- Advanced-Parsing
- RPA-Extraction
- Glossary-Management
- External-Translation-Memory — (NEW) Reuse translations across games
- Technical-Filtering
- Proxy-and-Rate-Limits
- Web-Google-Translate-Guide