Skip to content

captions

The full table is generated from jy_cli/docs/cli.md via the sync script (planned for W2). For now use cutcli captions add --help for live parameters.

Commands

bash
cutcli captions add <draftId> --captions <json> [options]
cutcli captions list <draftId>

Caption JSON fields

FieldTypeRequiredNotes
textstringyesCaption text
startnumberyesStart time (μs)
endnumberyesEnd time (μs)
keywordstringnoKeyword to highlight
keywordColorstringnoKeyword color (e.g. #FF6600)
inAnimationstringnoEntrance animation name
outAnimationstringnoExit animation name
inAnimationDurationnumbernoEntrance duration (μs)
outAnimationDurationnumbernoExit duration (μs)

Global style flags

FlagNotes
--font-size <n>Font size (recommended 6-12)
--text-color <hex>e.g. #FFFFFF
--bold / --italic / --underlineStyle toggles
--alignment <n>0=center, 1=left, 2=right
--transform-x <n>X position (-1 to 1)
--transform-y <n>Y position (-1 to 1)

Full list: cutcli captions add --help.

Example

bash
cutcli captions add "$DRAFT_ID" --captions '[
  {"text":"Hello","start":0,"end":3000000,
   "inAnimation":"渐显","inAnimationDuration":500000}
]' --font-size 8 --bold

Released under the MIT License.