Loading...
Loading...
Translate text using the DeepL API via the deepl-cli command-line tool. Use when the user asks to: translate text, translate to another language, use DeepL, translate with formality control, or pipe text through a translation. Supports all DeepL language pairs, source language auto-detection, context-aware translation, and formality levels (formal/informal).
npx skill4agent add daliusd/deepl-cli deepl-clinpm install -g @daliusd/deepl-cli~/.config/deepl-cli/config.jsonmkdir -p ~/.config/deepl-cli{
"api_key": "your-deepl-api-key"
}pass{
"api_key_command": "pass show deepl-api-key"
}api_key_commanddeepl-cli [options] [text]deepl-cli -t de "Hello, world!"deepl-cli -t de -s en "Hello"-sdeepl-cli -t de -c "This is a greeting in a formal business email" "Hello"# Formal
deepl-cli -t de -f more "How are you?"
# Informal
deepl-cli -t de -f less "How are you?"lessmoredefaultprefer_lessprefer_moreecho "Hello, world!" | deepl-cli -t deecho "Hello" | deepl-cli -t de | pbcopydeepl-cli -t de -v "Hello, world!"
# stdout: Hallo, Welt!
# stderr: Detected source language: en
# stderr: Billed characters: 13| Option | Short | Description |
|---|---|---|
| | Target language code (required, e.g. |
| | Source language code (default: auto-detect) |
| | Additional context for translation (not translated, not billed) |
| | Formality: |
| | Show metadata (detected source language, billed characters) |
| | Show help |
| Show version |
| Code | Language |
|---|---|
| English |
| German |
| French |
| Spanish |
| Italian |
| Japanese |
| Chinese |
| Polish |
| Dutch |
| Portuguese |
| Russian |
| Code | Language |
|---|---|
| English (American) |
| English (British) |
| German |
| French |
| Spanish |
| Italian |
| Japanese |
| Chinese (Simplified) |
| Chinese (Traditional) |
| Polish |
| Dutch |
| Portuguese (Brazilian) |
| Portuguese (European) |
| Russian |
--helpdeepl-cli -t de Hello worldapi_key_commandapi_key