Generated command reference

August 7, 2026 ยท View on GitHub

Generated by npm run docs:commands from the v2 command registry. Do not edit manually.

CommandUsageMutatesSummary
infocapcut info <project>noProject overview + material summary.
versioncapcut version <project>noDetect CapCut/JianYing version, schema flags, and support status.
lintcapcut lint <project> [options]noSchema-aware checks (overlaps, line length, missing files, main-track gaps, external media); exit 0/1/2 for CI.
trackscapcut tracks <project>noList all tracks.
segmentscapcut segments <project> [--track <type>]noList segments with timing; filter by --track .
textscapcut texts <project>noList all text/subtitle content.
set-textcapcut set-text <project> <id> <text>yesChange a text segment's content.
shiftcapcut shift <project> <id> <offset>yesShift one segment's timing by an offset (e.g. +0.5s).
shift-allcapcut shift-all <project> <offset> [--track <type>]yesShift all segments (optionally on one --track) by an offset.
speedcapcut speed <project> <id> <multiplier>yesSet a segment's playback speed.
volumecapcut volume <project> <id> <level>yesSet a segment's volume (0.0-1.0).
trimcapcut trim <project> <id> <start> <duration>yesTrim a segment to a start/duration window.
opacitycapcut opacity <project> <id> <alpha>yesSet a segment's opacity (0.0-1.0).
export-srtcapcut export-srt <project> [options]noExport subtitles to SRT or WebVTT on stdout, per line or per word.
export-timelinecapcut export-timeline <project> [--out <file.otio>]noExport video/audio tracks as OpenTimelineIO JSON for NLE handoff (DaVinci Resolve imports .otio natively).
import-timelinecapcut import-timeline <file.otio> (--out <new-project> | --into <project>)yesImport OpenTimelineIO JSON (the export-timeline schema set) as a new draft (--out) or append it onto an existing one (--into); unsupported OTIO features are reported, never silent.
materialscapcut materials <project> [--type <type>]noList material types and counts; filter with --type.
segmentcapcut segment <project> <id>noFull detail for one segment and its material.
materialcapcut material <project> <id>noFull detail for one material.
add-audiocapcut add-audio <project> <file-or-url> <start> [duration] [options]yesAdd a local or Wikimedia audio file on an audio track.
add-videocapcut add-video <project> <file-or-url> <start> [duration] [options]yesAdd a local or Wikimedia video/image on a video track.
add-textcapcut add-text <project> <start> <duration> <text> [options]yesAdd a text segment with font/color/position options.
cropcapcut crop <project> <segment-id> [--ratio <r> | --rect <x,y,w,h> | --reset]yesRead or set a video/photo segment's source-material crop (--ratio preset, --rect x,y,w,h, or --reset).
cutcapcut cut <project> <start> <end> --out <path>yesExtract a time range into a new standalone draft.
duplicatecapcut duplicate <project> <segment-id> [--track <track-name>] [--new-track]yesDuplicate a segment at its same timeline position onto a track above the source.
removecapcut remove <project> <segment-id> [--keep-track] [--keep-materials]yesRemove a segment, its emptied track, and the materials that orphans.
keyframecapcut keyframe <project> <id> <property> <time> <value> [--easing <name>] | --batchyesAdd a keyframe (position/scale/rotation/alpha/volume); single or --batch.
transitioncapcut transition <project> <id> <slug> [--duration <time>]yesAdd a transition between segments.
maskcapcut mask <project> <id> <slug> [options] | --offyesApply a mask (linear/circle/heart/...) with geometry flags, or --off.
bg-blurcapcut bg-blur <project> <id> <level> | --offyesSet background blur level 1-4, or --off.
text-stylecapcut text-style <project> <id> [options]yesStyle text (alpha/shadow/border/background box).
text-animcapcut text-anim <project> <id> [options]yesAdd intro/outro/combo text animation.
image-animcapcut image-anim <project> <id> [options]yesAdd intro/outro/combo animation to an image/video segment.
add-stickercapcut add-sticker <project> <resource-id> <start> <duration> [options]yesAdd a sticker on its own track with transform.
mix-modecapcut mix-mode <project> <id> <mode>yesSet a video segment's blend mode.
audio-fadecapcut audio-fade <project> <id> [--in <seconds>] [--fade-out <seconds>]yesAdd fade-in/fade-out to an audio segment (--in / --fade-out).
add-covercapcut add-cover <project> <image> [--time <milliseconds>]yesSet the project cover/thumbnail from a local image.
add-filtercapcut add-filter <project> <slug-or-name> (<start> <duration> | --full) [options]yesAdd a colour filter on its own track.
bubble-textcapcut bubble-text <project> <id> --bubble <slug>yesApply a speech-bubble shape to a text segment.
add-effectcapcut add-effect <project> <slug-or-name> (<start> <duration> | --full) [options]yesAdd a scene effect on its own track.
save-templatecapcut save-template <project> <id> <name> --out <path>noExtract a segment as a reusable template JSON.
apply-templatecapcut apply-template <project> <template> <start> <duration> [text] [options]yesStamp a template into a project with new timing/text.
make-presetcapcut make-preset <project> <text-segment-id> --out <preset.json>noExtract a text segment's styling as a reusable preset JSON (apply via --preset).
templatescapcut templates <project>noList bundled reusable templates.
batchcapcut batch <project> [--continue-on-error] < operations.jsonlyesRun multiple edits from stdin (JSONL), one file write.
import-srtcapcut import-srt <project> <srt-or-> [options]yesImport an SRT file/stdin as one text segment per cue.
import-asscapcut import-ass <project> <ass-or-> [options]yesImport an ASS/SSA subtitle file as text segments.
text-rangescapcut text-ranges <project> <id> --styles <json-or-@file>yesApply byte-accurate multi-style ranges to a text segment.
captioncapcut caption <project> (--audio <path> | --from-segment <id>) [options]yesTranscribe audio via whisper into real caption-track segments.
translatecapcut translate <project> --to <language> --out <path> [options]yesClone a draft into another language via the Anthropic API.
migratecapcut migrate <project> --from <version> --to <version>yesApply known schema migrations across version boundaries.
add-sfxcapcut add-sfx <project> <slug> <start> <duration> [options]yesAdd a sound effect on a dedicated track.
chromacapcut chroma <project> <id> (--color <hex> | --off) [options]yesGreen-screen / chroma key a video segment, or --off.
prunecapcut prune <project>yesRemove materials no segment references.
registercapcut register <project-dir> [--apply] [--drafts <dir>]yesRepair an existing draft's registration metadata (draft_meta_info.json + root_meta_info.json entry) from a read-only draft_content.json so the CapCut app lists it (plan by default; --apply writes with .bak).
renamecapcut rename <project> <new-name> [--drafts <dir>]yesRename a draft after creation: the folder on disk plus draft_name and every self-referential path in draft_meta_info.json and the store's root_meta_info.json entry, transactionally (refuses when the target folder exists).
relinkcapcut relink <project> (--dir <path> | --from <prefix> --to <prefix>)yesRepair broken media paths (--dir or --from/--to).
replace-mediacapcut replace-media <project> <segment-id> <new-file> [--retime]yesSwap a segment's source file (placeholder > final) keeping its timing, effects, and keyframes.
timelinecapcut timeline <project> [--cols <number>]noShow the track/segment layout (JSON, or -H ASCII bars).
projectscapcut projects [query] [--drafts <path>] [--names]noList CapCut/JianYing draft folders on disk.
diffcapcut diff <project-a> <project-b>noCompare two drafts (segments/materials/tracks added/removed/changed).
concatcapcut concat <project-a> <project-b> [--out <path>]yesAppend one draft onto another's timeline (id-safe), write to --out or in place.
configcapcut confignoShow the resolved config (.capcutrc + effective defaults).
describecapcut describenoEmit the full command surface as JSON (agent tool spec).
completionscapcut completions <bash|zsh|fish>noGenerate shell completions (bash
enumscapcut enums <category-flag> [--jianying]noList enum slugs (transitions, masks, effects, ...) by category.
harvest-enumscapcut harvest-enums <project> [--apply] [--catalogue <path>]noLearn store resource ids from an app-authored draft into the per-user catalogue (lint + writable slugs).
doctorcapcut doctornoEnvironment preflight (Node, whisper, API key, project dir).
diagnosecapcut diagnose <project> [--bundle <report.json>]noInspect canonical draft files, divergence, and editor-write safety.
fixturecapcut fixture <project> --out <dir>noBuild a shareable, redacted compatibility bundle (timeline JSON only) for a version-support issue, including the mask-keyframe evidence report (#44).
sync-timelinescapcut sync-timelines <project-dir> [--apply]yesReconcile drifted timeline mirrors (template-2.tmp, draft_info.json) from a read-only draft_content.json (plan with mtimes by default; --apply rewrites only the drifted mirrors).
restorecapcut restore <project> [--step <number> | --list]yesUndo writes from .bak / snapshot history (--step N, --list).
servecapcut serve [--queue <path>] [options]noRun a stateless JSONL job queue from stdin/--queue.
decryptcapcut decrypt <project-or-file>noDetect JianYing 6.0+ encryption and explain the workaround.
exportcapcut export <drafts-dir> --batch [options]yesEXPERIMENTAL UI-automated render queue (macOS).
initcapcut init <name> [--template <dir>] [--drafts <dir>]yesCreate a new empty draft from a template.
quickstartcapcut quickstart <name> [--video <f>] [--audio <f>] [--srt <f>] [--drafts <dir>]yesOne-command first draft: create + add one input + lint + print the open-in-CapCut step.
compilecapcut compile <spec.json> [--out <draftdir>] [--data <rows.jsonl|->] [--check | --plan]yesBuild a draft from a declarative JSON spec (the inverse of describe).
rendercapcut render <project> [--out <preview.mp4>] [options]noRender a low-res ffmpeg proxy preview (trim+speed+audio, --burn-captions); not CapCut's final render.
detect-scenescapcut detect-scenes <video> [options]noDetect scene-change cut points in a video (ffmpeg scene filter); prints cuts + segments to seed compile/cut.