v0 命令和标志对照
查看各个 lingo.dev 命令和标志在当前 @lingo.dev/cli 中的对应项。
v0 命令和标志对照 #
| v0 | 当前 CLI |
|---|---|
lingo.、lingo. | lingo push --wait |
lingo. | 使用 GitHub App,或使用 lingo push --wait 并自行添加提交步骤 |
lingo. | lingo whoami |
lingo. | 不再需要。首次推送时会写入 .lingo/lock.json。 |
lingo. | 无对应项。请使用 lingo check 或 lingo push --estimate。 |
lingo.、lingo. | 读取 .lingo/config.json;lingo whoami 会显示组织和引擎,并在执行 lingo login 后显示账户。 |
lingo. | 无对应项。lingo clean 仅适用于 @lingo.dev/react 翻译目录。 |
lingo. | lingo purge --locale、--file 或 --lockfile-only。这会删除整个目标文件。 |
--frozen | lingo check,但不会报告现有目标文件中缺失的键 |
--file、--bucket | 将路径或通配模式作为参数,例如 lingo push 'docs/en/**/*.md' --wait。不使用 --force 时,只会补齐缺失的目标文件。 |
--key | --key,可重复使用 |
--force | --force,在 CI 中还需加上 --yes |
--estimate | lingo push --estimate |
--target-locale | --locale,仅接受 targetLocales 中的语言区域;请参阅处理部分语言区域。 |
--source-locale | 配置中的 sourceLocale |
--strict | 不再需要。只要有一个目标失败,lingo push --wait 就会失败。 |
--pseudo | 新版 CLI 不提供伪翻译功能。要像使用 --frozen --pseudo 时一样离线检查翻译,请运行 lingo check,无需 API 密钥。 |
--debug | LINGO_DEBUG=1 |
操作输入参数 process-own-commits、parallel | GitHub App 和 CLI 均无对应项 |
当前 CLI 输出的文本与 v0 不同,请更新所有解析 v0 输出的脚本。
返回迁移参考。