设计与多媒体

add-cli-option

remotion-dev/remotion

Add a new Remotion CLI or config option by creating an AnyRemotionOption, registering CLI parsing, wiring config setters, and updating documentation. Use when adding or converting command-line flags or Remotion options.

  • 815 次安装
  • 6.9万 星标
  • 收录于

安装命令

npx skills add https://github.com/remotion-dev/remotion --skill add-cli-option

SKILL.md

Add a new CLI option

How to convert a hardcoded CLI flag into a proper AnyRemotionOption, or add a brand new one.

1. Create the option definition

Create packages/renderer/src/options/<name>.tsx:

import type {AnyRemotionOption} from './option';

let myValue = false; // module-level default state

const cliFlag = 'my-flag' as const;