Skip to content

CLI command reference ​

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

CLI settings

Commands ​

CommandPurpose
workspace listList registered workspaces
workspace create <path>Create a workspace; optionally set --name
workspace infoInspect the current workspace
file listList 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 listList 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 listList 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 installRegister the current CLI executable with supported browsers
browser uninstallUnregister browser connection components
doctorCheck the runtime environment

Common options ​

OptionMeaning
--workspace <path>Explicitly select a workspace. If omitted, search upward, then fall back to the most recently updated registered workspace
--jsonStructured output; diagnostics and progress stay outside JSON stdout
--lang zh|enSelect terminal output language
--allExplicitly select the whole workspace; do not combine with paths
--no-waitReturn after submitting local processing commands; work continues in the background
--forceForce processing and bypass relevant result reuse; this may increase cost
--rebuildExplicitly rebuild indexes
--auto-transcribeTranscribe first if subtitles are missing
--remoteUse 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|shotsSearch 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
--stdinRead JSON configuration from stdin, suitable for credentials
--name <name>Name a newly created workspace
--include-speakersInclude existing speaker information in exports
--profile <name>Use an isolated configuration; omit to share app data
-h / --help;-v / --versionDisplay 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.

OptionMeaning
--action download|transcribe|summarizeRequired: download, download and transcribe, or summarize
--transcription auto|local|remoteDefaults to auto, following the client; or explicitly select local or online
--allow-paidAuthorize possibly paid online steps; not a spending cap
--dry-runValidate 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
--waitWait 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.

sh
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"