CLI command reference
Start with the CLI quick start. Run octsum --version and octsum --help to check the installed version and its help.

Commands
| Command | Purpose |
|---|---|
workspace list | List registered workspaces |
workspace create <path> | Create a workspace; optionally set --name |
workspace info | Inspect the current workspace |
file list | List workspace files |
file info <path> | Inspect file and index metadata |
import <paths...> | Import files or folders; optionally add --index --transcribe --summarize |
index [paths...] | Build indexes; no paths selects the whole workspace; --rebuild rebuilds |
index status [paths...] | Check index status for selected files. Omit paths to list existing index records |
transcribe <paths...> | Transcribe; --remote explicitly selects online transcription |
correct <paths...> | Apply AI corrections directly to subtitles |
summarize <paths...> | Generate summaries; --auto-transcribe creates missing transcripts |
translate <paths...> | Translate subtitles; --target-language selects the target |
transcript show <path> | Read subtitles or select a translation with --target-language. Supports --offset and --limit |
transcript export <path> | Export subtitles with --format and --output |
summary show <path> | Read a summary |
summary export <path> | Export a Markdown summary in md format |
search <query> | Search existing indexes with --type text, subtitles or shots |
task list | List task IDs, media IDs, types, statuses, progress and errors in the current workspace. Supports --offset and --limit |
task info <id> | Read one task, including its engine, start and completion times, and result_json |
task wait <id> | Wait for a task. Set --timeout <seconds> (1–86400) to limit the wait |
task result <id> | Read task results and stage information |
task cancel <id> | Request task cancellation |
task retry <id> | Retry the original task; supports --no-wait |
submit <url> | Submit a video URL; --action is required |
open --task <id> | Open the task content in the desktop app |
model list | List models |
model download <path> | Download a model by its catalog path, such as /model/qwen3-asr-0.6b-q8_0.gguf |
config get <key> | Read shared settings with sensitive values redacted |
config set <key> <json> | Update shared settings using --stdin for sensitive values. Activate or renew in the app |
browser install | Register the current CLI executable with supported browsers |
browser uninstall | Unregister browser connection components |
doctor | Check the runtime environment |
Common options
| Option | Meaning |
|---|---|
--workspace <path> | Explicitly select a workspace. If omitted, search upward, then fall back to the most recently updated registered workspace |
--json | Structured output; diagnostics and progress stay outside JSON stdout |
--lang zh|en | Select terminal output language |
--all | Explicitly select the whole workspace; do not combine with paths |
--no-wait | Return after submitting local processing commands; work continues in the background |
--force | Force processing and bypass relevant result reuse; this may increase cost |
--rebuild | Explicitly rebuild indexes |
--auto-transcribe | Transcribe first if subtitles are missing |
--remote | Use online transcription for transcribe or prerequisite transcription |
--model <id> / --supplier <id> | Choose a local transcription model with transcribe, or override the model and provider for correction, summaries or translation |
--language <code> | Set transcription language |
--target-language <code> | Target translation language or translation track, such as zh or en |
--format <format> / --output <path> | Set export format and destination; subtitles support srt, vtt, ass and txt and default to srt. Summaries use md |
--type text|subtitles|shots | Search subtitle text, subtitle meaning or frames. Use --file to restrict frame search to one video |
--file <path> / --limit <n> / --offset <n> | For frame search, --file is optional and --limit defaults to 50 with a maximum of 50. Task lists and transcript pages start at offset 0, default to 100 entries and cap at 500. Text and semantic subtitle search use --limit |
--stdin | Read JSON configuration from stdin, suitable for credentials |
--name <name> | Name a newly created workspace |
--include-speakers | Include existing speaker information in exports |
--profile <name> | Use an isolated configuration; omit to share app data |
-h / --help;-v / --version | Display help or version |
URL submission options
submit uses a dedicated parameter set. Use --wait rather than --no-wait; choose transcription with --transcription rather than --remote.
| Option | Meaning |
|---|---|
--action download|transcribe|summarize | Required: download, download and transcribe, or summarize |
--transcription auto|local|remote | Defaults to auto, following the client; or explicitly select local or online |
--allow-paid | Authorize possibly paid online steps; not a spending cap |
--dry-run | Validate without creating a processing task |
--request-id <id> | Reuse an ID for the same request for idempotent retries; use a new ID for different requests |
--wait | Wait after submission |
--timeout <seconds> | Wait timeout, default 300 seconds, range 1–86400; a timeout does not cancel work |
Execution and results
Business commands require a workspace. Paths for existing media resolve inside it; importing external media uses import. Processing commands accept multiple files or directories. Except for index, use --all explicitly to process the whole workspace.
Local processing commands wait by default; submit returns after submission by default. Ctrl+C stops waiting while background processing may continue. Use task cancel to cancel. A timeout also leaves the task available for later queries.
Task IDs are scoped to the selected workspace. Use task info for the execution record and task result for workflow stages and media results. Wait and result responses can include errorHint, such as instructions to sign in again. A batch can finish with a nonzero exit code even when some files succeed.
--force can repeat model calls. Normal processing may reuse compatible saved or shared results. AI correction applies changes directly, so review the resulting transcript. Translation follows the app’s saved local or remote mode; see Local subtitle translation.
JSON output for submit, open, task result and timeout-aware task wait uses a schemaVersion, ok, and data or error envelope. Other commands return their own result shapes; inspect the actual response before writing automation. A successful submission does not mean processing has completed.
For protocol commands, exit code 0 means the operation succeeded, 1 indicates execution failure, 2 invalid arguments or URLs, 3 a missing prerequisite or authorization, 4 a wait timeout, and 130 interrupted waiting. Other commands use their own success/failure exit codes. Check both the response and task status.
Configure models and providers in the app first. config set changes shared settings rather than only the current invocation. Supply sensitive configuration through --stdin, and never paste credentials into public logs.
Build or inspect an index before searching. Video indexing and semantic search can require an installed embedding model. Frame search uses existing frame indexes in the selected workspace. Results include the relative file path and frame timestamp. With --file, the command returns the matched shots from that video.
octsum index "导入/lesson.mp4"
octsum index status "导入/lesson.mp4"
octsum search "AI" --type text --workspace "./OctSum-demo" --limit 10 --json
octsum search "learning methods" --type subtitles --limit 10
octsum search "whiteboard" --type shots --workspace "./OctSum-demo" --limit 10 --json
octsum search "whiteboard" --type shots --file "导入/lesson.mp4"