← 返回
开发者工具 Key 中文

Translate CLI

End-user guide for running and configuring the `translate` CLI across text/stdin/file/glob inputs, provider selection, presets, custom prompt templates, and...
关于 `translate` CLI 的运行与配置指南,涵盖文本/标准输入/文件/通配符输入、提供商选择、预设及自定义提示词模板等内容。
atacan
开发者工具 clawhub v0.2.0 1 版本 99955.5 Key: 需要
★ 0
Stars
📥 2,246
下载
💾 33
安装
1
版本
#latest

概述

translate-cli

Use this skill to help end users run and configure the translate CLI.

translate is a command-line translator for text, stdin, files, globs, and .xcstrings catalogs. It supports multiple providers (OpenAI, Anthropic, Ollama, OpenAI-compatible endpoints, Apple providers, DeepL), prompt presets and template overrides, and persistent TOML configuration.

Capabilities

  • Build correct translate commands for inline text, stdin, single-file, and multi-file workflows.
  • Keep options before positional input(s) when constructing commands (for example, translate --to de README.md).
  • Explain provider selection, credentials, model/base URL requirements, and provider-specific constraints.
  • Configure defaults, provider endpoints, network settings, and presets with translate config and config.toml.
  • Customize prompts with presets, inline templates, @file templates, and placeholders.
  • Explain output behavior (stdout, --output, --in-place, suffix naming), parallel jobs, dry-run, and validation errors.
  • Streaming output: --stream forces on, --no-stream forces off, otherwise defaults.stream applies.

Starter commands

translate --text --to fr "Hello world"
translate --to de README.md
translate --provider ollama --text --to en --dry-run "Merhaba dunya"
translate config set defaults.provider anthropic

Note: prefer option-before-input ordering in all examples and generated commands.

References

  • Quick examples: references/quickstart.md
  • Full flag and subcommand reference: references/flags-and-subcommands.md
  • TOML schema and precedence: references/config-toml.md
  • Provider rules and environment variables: references/providers-and-env.md
  • Presets, prompt templates, placeholders: references/presets-and-prompts.md
  • Runtime behavior, warnings, and exit codes: references/behavior-and-errors.md

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-03-29 01:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,803
content-creation

Record screen, microphone or camera from macOS terminal

atacan
{"answer":"macOS 命令行工具:在终端录制麦克风音频、屏幕视频/截图及摄像头视频/照片,支持设备列表与输出控制。"}
★ 5 📥 2,076
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,191