
Phrase Strings CLI
CLIPhrase Strings 官方命令行:phrase init 按向导生成配置,之后用 phrase push 上传语言文件、phrase pull 拉回最新译文,也能调用全部 API 管理项目、语言与词条。需要 Phrase Strings 账号(付费服务,可免费试用 14 天)与 API 访问令牌。
CLI v2 client for phrase
The Phrase Strings Client is available for all major platforms and lets you access all API endpoints as well as easily sync your locale files between your source code and Phrase.
Phrase Strings is a translation management platform for software projects. You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase Strings for your account.
This CLI client was generated by the OpenAPI Generator project.
-
API version: 2.0.0
-
Package version: 2.69.1
-
Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit https://developers.phrase.com/api/
Quick Start
This quick start will guide you through the basic steps to get up and running with the Phrase Strings Client.
1. Install
Download and install the client for your platform. See our detailed installation guide for more information.
Homebrew
If you use homebrew, we have provided a tap to make installation easier on Mac OS X:
brew install phrase-cli
The tap is linked to our Formula collection and will be updated, when you call brew update as well.
2. Init
Initialize your project by executing the init command. This lets you define your preferred locale file format, source files and more.
$ cd /path/to/project
$ phrase init
When using the US datacenter you need to provide a different API host:
$ phrase init --host https://api.us.app.phrase.com/v2
3. Upload your locale files
Use the push command to upload your locale files from your defined sources:
$ phrase push
4. Download your locale files
Use the pull command to download the most recent locale files back into your project according to your targets:
$ phrase pull
5. Docker
You can also use phrase through a docker image, without installing the cli on your computer.
$ docker run --rm phrase/phrase-cli:2.69.1 help
Some commands are interactive and require the -it flag.
$ docker run -it phrase/phrase-cli:2.69.1 init
Commands that need to read the config file and write locale files can mount a directory.
$ docker run --volume $(pwd):/code --workdir /code --rm phrase/phrase-cli:2.69.1 pull
You can also use the docker image as base for more complex images.
6. More
To see a list of all available commands, simply execute:
$ phrase
To see all supported options for a command, simple use the --help flag:
$ phrase locales list --help
See our detailed guides for in-depth instructions on how to use the Phrase Strings Client.
Contributing
This tool and it's source code are auto-generated from templates that run against a API specification file. Therefore we can not accept any pull requests in this repository. Please use the GitHub Issue Tracker to report bugs.
Further reading
Licenses
phrase-client is licensed under MIT license. (see LICENSE)
Parts of phrase-client use third party libraries which are vendored and licensed under different licenses
Author
Get help / support
Please contact support@phrase.com and we can take more direct action toward finding a solution.
相关资源

Lingo.dev CLI
CLILingo.dev 官方命令行:lingo push 把仓库里的 JSON、YAML、Markdown、PO、XLIFF、Android/Xcode 字符串等文件发给平台上的大模型本地化引擎翻译,lingo pull 取回译文,可接入 CI。需 Lingo.dev 账号,按量计费,有免费沙箱。
lingodotdev/lingo.dev5.4k
Languine
CLIAI 本地化工具:先把服务端一键部署到自己的 Vercel 账号(自动配好 Postgres 与 AI Gateway,部署后需开启部署保护),再在项目里运行 npx languine@selfhosted translate,用大模型把应用的语言文件翻译成多个语种,也提供自动提 PR 的 GitHub Action。需要 Vercel 账号与 Node.js。
languine-ai/languine2k
attranslate
CLI面向编码 agent 的离线翻译同步工具:只把 JSON、YAML、PO、CSV 等多语言文件里新增的文案交给 agent 翻译,不覆盖人工改过的译文,省 token。适合译员与开发协作维护软件译文;需要 Node.js,本身不调用翻译 API。
fkirc/attranslate357
Crowdin CLI
CLICrowdin 官方命令行:把待翻译的源文件上传到 Crowdin,再把译文下载回原位置,还能查看翻译进度、管理术语表与翻译记忆、触发机器或 AI 预翻译,支持 JSON 输出便于 agent 解析。需要 Crowdin 账号(可免费试用,开源项目可申请免费授权)与个人访问令牌,crowdin init 会引导生成配置文件。
crowdin/crowdin-cli321
Lokalise CLI v2
CLILokalise 官方命令行(lokalise2),覆盖 Lokalise API v2:上传和下载语言文件,管理词条、译文、截图、翻译任务与贡献者,方便把翻译进度同步到项目里。需要 Lokalise 账号(付费服务,可免费试用 14 天),在个人资料页生成 API Token 后用 --token 传入。
lokalise/lokalise-cli-2-go124
SimpleLocalize CLI
CLISimpleLocalize 官方命令行:上传、下载多语言翻译文件,一键发起机器翻译与 AI 自动翻译,把译文发布到 CDN 托管,还能从源码中抽取待翻译的文案键,适合放进 CI 自动跑本地化流程。需要 SimpleLocalize 账号与项目 API Key,平台为付费服务,可免费试用 14 天。
simplelocalize/simplelocalize-cli80