- How to install the DeepL CLI from source
- How to authenticate and run your first translation
- What commands are available for translation, writing, voice, and more
Installation
The CLI requires Node.js (v18+) and build tools for native compilation:
- macOS: Xcode Command Line Tools (
xcode-select --install) - Linux:
python3,make,gcc(apt install python3 make gcc g++) - Windows: Visual Studio Build Tools
Quick start
1. Set up authentication
Use the interactive setup wizard:2. Translate text
3. Enhance your writing
Key capabilities
| Command | Description |
|---|---|
deepl translate | Translate text with support for formality, context, and custom instructions |
deepl translate --file | Translate text files while preserving code blocks and formatting |
deepl document | Translate documents (PDF, DOCX, PPTX, XLSX) with format preservation |
deepl write | Enhance grammar and style via DeepL Write |
deepl voice | Stream real-time speech translation via WebSocket |
deepl watch | Monitor files and auto-translate on change |
deepl glossary | Create, list, and manage glossaries |
deepl admin | Manage API keys, usage limits, and team access |
deepl usage | Check API usage and character quotas |
deepl config | Configure defaults (target language, formality, model) |
Usage examples
Translate with context and formality
Translate a document
Batch translate a directory
Watch mode for development
Git hooks integration
Automatically translate changed files before each commit:Developer workflow features
- Local SQLite cache with LRU eviction avoids redundant API calls
- Monitor billed characters for budget planning with
deepl usage - Use
--quietand--no-inputflags for CI/CD pipelines - Generate shell completions for bash, zsh, fish, and PowerShell
Further reading
- DeepL CLI on GitHub — full documentation, changelog, and source code
- DeepL API authentication — set up your API key
- Your first API request — understand how the API works
- Client libraries — official SDKs for six languages