krillinai-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKrillinAI CLI
KrillinAI CLI
Use this as the top-level routing skill for KrillinAI command-line work.
将此 skill 作为 KrillinAI 命令行工作的顶层路由 skill。
Build And Locate The Binary
构建并定位二进制文件
Build both KrillinAI binaries through the repository script:
bash
pnpm krillinai:buildFor the current machine, locate the CLI without assuming a platform or architecture:
bash
TARGET="$(node -p "process.platform + '-' + process.arch")"
SUFFIX="$(node -p "process.platform === 'win32' ? '.exe' : ''")"
KRILLINAI_CLI="$PWD/.runtime/build/krillinai/$TARGET/bin/krillinai-cli$SUFFIX"
test -f "$KRILLINAI_CLI"The CLI loads relative to its process working directory. For real runs from a source checkout, use as the process working directory and create its ignored from without overwriting an existing file. A release archive should be run from its unpacked package root.
config/config.tomlruntime/krillinaiconfig/config.tomlconfig/config-example.tomlFor build layout, configuration, JSON, manifest, output, and error details, read:
text
skills/krillinai-cli/references/cli-contract.md通过仓库脚本构建两个 KrillinAI 二进制文件:
bash
pnpm krillinai:build对于当前机器,在不预设平台或架构的情况下定位 CLI:
bash
TARGET="$(node -p "process.platform + '-' + process.arch")"
SUFFIX="$(node -p "process.platform === 'win32' ? '.exe' : ''")"
KRILLINAI_CLI="$PWD/.runtime/build/krillinai/$TARGET/bin/krillinai-cli$SUFFIX"
test -f "$KRILLINAI_CLI"CLI 会相对于其进程工作目录加载 。对于从源代码检出执行的真实运行,应使用 作为进程工作目录,并根据 创建被忽略的 ,但不要覆盖现有文件。发布归档包应从解压后的包根目录运行。
config/config.tomlruntime/krillinaiconfig/config-example.tomlconfig/config.toml有关构建布局、配置、JSON、manifest、输出和错误详情,请阅读:
text
skills/krillinai-cli/references/cli-contract.mdChoose The Command
选择命令
| User intent | Command / skill |
|---|---|
| Generate source, target, bilingual, and short vertical subtitles | |
| Generate target-language dubbing from subtitles | |
| Create landscape videos | |
| Create portrait/short-form videos | |
| Generate a cover from a complete image prompt | |
| Generate speech from plain text | |
| List provider voice codes for Aliyun, OpenAI, or MiniMax | |
| Validate a requested multi-stage output plan | |
pipelineunsupported_commandstatus| 用户意图 | 命令 / skill |
|---|---|
| 生成源语言、目标语言、双语和竖版短视频字幕 | |
| 根据字幕生成目标语言配音 | |
| 创建横屏视频 | |
| 创建竖屏/短视频 | |
| 根据完整的图像提示词生成封面 | |
| 根据纯文本生成语音 | |
| 列出 Aliyun、OpenAI 或 MiniMax 的提供商声音代码 | |
| 验证请求的多阶段输出计划 | |
pipelineunsupported_commandstatusOperating Rules For Agents
Agent 操作规则
- Use a dedicated ; do not scatter outputs in the repo root.
--workdir - Use for command-shape validation before external calls.
--dry-run - Parse stdout as JSON lines. The terminal response is the object containing ; OpenCreator mode may emit progress frames first.
ok - Treat and actual output files as the source of truth after a real stage.
krillinai_manifest.json - Reuse manifest outputs for later stages instead of guessing filenames.
- If a command fails, classify by :
error.kind,usage,retryable, ordependency.internal - Avoid rerunning expensive stages if the manifest already has valid upstream outputs.
- Do not claim that consumed a reference image: the current CLI accepts a complete text prompt and size only.
cover - Do not request an Edge TTS voice catalog: currently supports
voices,aliyun, andopenai.minimax
- 使用专用的 ;不要将输出散落在仓库根目录。
--workdir - 在进行外部调用之前,使用 验证命令结构。
--dry-run - 将 stdout 解析为 JSON Lines。终端响应是包含 的对象;OpenCreator 模式可能会先输出进度帧。
ok - 真实阶段完成后,以 和实际输出文件为准。
krillinai_manifest.json - 后续阶段应复用 manifest 输出,不要猜测文件名。
- 如果命令失败,按 分类:
error.kind、usage、retryable或dependency。internal - 如果 manifest 中已有有效的上游输出,避免重新运行耗时的阶段。
- 不要声称 使用了参考图像:当前 CLI 仅接受完整的文本提示词和尺寸。
cover - 不要请求 Edge TTS 声音目录:目前支持
voices、aliyun和openai。minimax
Minimal Workflow
最小工作流
bash
REPO_ROOT="$PWD"
WORKDIR="$REPO_ROOT/tasks/demo"
mkdir -p "$WORKDIR"
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" subtitle \
"https://www.youtube.com/watch?v=VIDEO_ID" \
--origin-lang en \
--target-lang zh_cn \
--workdir "$WORKDIR" \
--caption-source any \
--prepare-video)
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" render-vertical \
--workdir "$WORKDIR")bash
REPO_ROOT="$PWD"
WORKDIR="$REPO_ROOT/tasks/demo"
mkdir -p "$WORKDIR"
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" subtitle \
"https://www.youtube.com/watch?v=VIDEO_ID" \
--origin-lang en \
--target-lang zh_cn \
--workdir "$WORKDIR" \
--caption-source any \
--prepare-video)
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" render-vertical \
--workdir "$WORKDIR")