Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

DeepL CLI Examples

This directory contains practical, real-world examples of using the DeepL CLI.

Quick Links

Core Commands

Translate:

Write:

Voice:

Resources

  • Glossaries - Managing glossaries for consistent terminology

Workflow

Configuration

Information

Administration

  • Admin API - Managing API keys and viewing organization usage analytics

Getting Started

  • Setup Wizard - Interactive first-time setup with deepl init

Advanced

  • Advanced Translation - Tag handling versions, beta languages, custom API URLs, and document minification

Prerequisites

All examples assume you have:

  1. Installed DeepL CLI (npm install -g deepl-cli or npm link)
  2. A DeepL API key configured (deepl auth set-key YOUR_API_KEY)

Running Examples

Each example is a standalone bash script that you can run directly:

# Make executable
chmod +x examples/*.sh

# Run an example
./examples/01-basic-translation.sh

Or follow along and run commands individually.

Running All Examples

You can run all examples at once using the run-all.sh script:

# Run all examples
./examples/run-all.sh

# Run all examples in fast mode (skip slow examples like watch mode)
./examples/run-all.sh --fast

# Stop on first failure
./examples/run-all.sh --stop-on-error

# Show help
./examples/run-all.sh --help

Note: Running all examples will make real API calls and consume your DeepL API quota.

Example Files

The sample-files/ directory contains sample documents used in the examples.

Contributing Examples

Have a useful example? Please contribute! See ../CLAUDE.md for guidelines.