Skip to content

🎥 Make videos programmatically with React

remove from CLI flags

Jonny Burger7e36244b7272
diff --git a/.claude/skills/writing-docs/SKILL.md b/.claude/skills/writing-docs/SKILL.md
index 1ba1c65e21..e0bafeddd5 100644
--- a/.claude/skills/writing-docs/SKILL.md
+++ b/.claude/skills/writing-docs/SKILL.md
@@ -14,9 +14,9 @@ Documentation lives in `packages/docs/docs` as `.mdx` files.
3. Write the content following guidelines below
4. Run `bun render-cards.ts` in `packages/docs` to generate social preview cards
-**One API per page**: Each function or API should have its own dedicated documentation page. Do not combine multiple APIs (e.g., `getEncodableVideoCodecs()` and `getEncodableAudioCodecs()`) on a single page. This is the established pattern throughout the codebase.
+**One API per page**: Each function or API should have its own dedicated documentation page. Do not combine multiple APIs (e.g., `getEncodableVideoCodecs()` and `getEncodableAudioCodecs()`) on a single page.
-**Public API only**: Documentation is for public APIs only. Do not mention, reference, or compare against internal/private APIs or implementation details. Users should only see what is exported and intended for public use.
+**Public API only**: Documentation is for public APIs only. Do not mention, reference, or compare against internal/private APIs or implementation details.
**Use headings for all fields**: When documenting API options or return values, each property should be its own heading. Use `###` for top-level properties and `####` for nested properties within an options object. Do not use bullet points for individual fields.
@@ -115,6 +115,7 @@ For section headings:
For optional parameters in API documentation:
1. **Add `?` to the heading** - this indicates the parameter is optional
+ --> Don't do it if it is a CLI flag (beginning with `--`) - CLI flags are always optional
2. **Do NOT add `_optional_` text** - the `?` suffix is sufficient
3. **Include default value in description** - mention it naturally in the text
diff --git a/packages/docs/docs/cli/add.mdx b/packages/docs/docs/cli/add.mdx
index 8e9924b20b..f8c335cbda 100644
--- a/packages/docs/docs/cli/add.mdx
+++ b/packages/docs/docs/cli/add.mdx
@@ -34,7 +34,7 @@ This command will:
## Flags
-### `--package-manager?`<AvailableFrom v="4.0.367"/>
+### `--package-manager`<AvailableFrom v="4.0.367"/>
Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.
diff --git a/packages/docs/docs/cli/benchmark.mdx b/packages/docs/docs/cli/benchmark.mdx
index 82ce5ea339..5ea0e29252 100644
--- a/packages/docs/docs/cli/benchmark.mdx
+++ b/packages/docs/docs/cli/benchmark.mdx
@@ -19,47 +19,47 @@ If `composition-ids` is not passed, Remotion will let you select compositions fr
## Flags
-### `--runs?`
+### `--runs`
Specify how many times video must be rendered. Default value is 3.
-### `--concurrencies?`
+### `--concurrencies`
You can specify which concurrency value should be used while rendering the video. Multiple concurrency values can be passed separated by comma. Learn more about [concurrency](/docs/terminology/concurrency)
-### `--codec?`
+### `--codec`
Inherited from [`npx remotion render`](/docs/cli/render#--codec)
-### `--audio-codec?`<AvailableFrom v="3.3.42" />
+### `--audio-codec`<AvailableFrom v="3.3.42" />
<Options id="audio-codec" />
-### `--crf?`
+### `--crf`
Inherited from [`npx remotion render`](/docs/cli/render#--crf)
-### `--frames?`
+### `--frames`
Inherited from [`npx remotion render`](/docs/cli/render#--frames)
-### `--image-format?`
+### `--image-format`
Inherited from [`npx remotion render`](/docs/cli/render#--image-format)
-### `--pixel-format?`
+### `--pixel-format`
Inherited from [`npx remotion render`](/docs/cli/render#--pixel-format)
-### `--props?`
+### `--props`
Inherited from [`npx remotion render`](/docs/cli/render#--props)
-### `--prores-profile?`
+### `--prores-profile`
Inherited from [`npx remotion render`](/docs/cli/render#--prores-profile)
-### `--jpeg-quality?`<AvailableFrom v="4.0.0" />
+### `--jpeg-quality`<AvailableFrom v="4.0.0" />
Inherited from [`npx remotion render`](/docs/cli/render#--jpeg-quality)
@@ -67,15 +67,15 @@ Inherited from [`npx remotion render`](/docs/cli/render#--jpeg-quality)
Removed in v4.0.0. Renamed to `--jpeg-quality`.
-### `--log?`
+### `--log`
Inherited from [`npx remotion render`](/docs/cli/render#--log)
-### `--ignore-certificate-errors?`
+### `--ignore-certificate-errors`
Inherited from [`npx remotion render`](/docs/cli/render#--ignore-certificate-errors)
-### `--disable-web-security?`
+### `--disable-web-security`
Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
@@ -83,7 +83,7 @@ Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
<Options id="dark-mode" />
-### ~`--disable-headless?`~
+### ~`--disable-headless`~
<Options id="disable-headless" />
@@ -91,7 +91,7 @@ Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
<Options cli id="enable-multiprocess-on-linux" />
-### `--gl?`
+### `--gl`
Inherited from [`npx remotion render`](/docs/cli/render#--gl)
@@ -99,63 +99,63 @@ Inherited from [`npx remotion render`](/docs/cli/render#--gl)
<Options id="chrome-mode" />
-### `--timeout?`
+### `--timeout`
Inherited from [`npx remotion render`](/docs/cli/render#--timeout)
-### `--scale?`
+### `--scale`
Inherited from [`npx remotion render`](/docs/cli/render#--scale)
-### `--port?`
+### `--port`
Inherited from [`npx remotion render`](/docs/cli/render#--port)
-### `--number-of-gif-loops?`
+### `--number-of-gif-loops`
<Options id="number-of-gif-loops" />
-### `--every-nth-frame?`
+### `--every-nth-frame`
Inherited from [`npx remotion render`](/docs/cli/render#--every-nth-frame)
-### `--log?`
+### `--log`
Inherited from [`npx remotion render`](/docs/cli/render#--log)
-### `--muted?`
+### `--muted`
Inherited from [`npx remotion render`](/docs/cli/render#--muted)
-### `--enforce-audio-track?`
+### `--enforce-audio-track`
Inherited from [`npx remotion render`](/docs/cli/render#--enforce-audio-track)
-### `--disallow-parallel-encoding?`<AvailableFrom v="4.0.315" />
+### `--disallow-parallel-encoding`<AvailableFrom v="4.0.315" />
Inherited from [`npx remotion render`](/docs/cli/render#--disallow-parallel-encoding)
-### `--browser-executable?`
+### `--browser-executable`
Inherited from [`npx remotion render`](/docs/cli/render#--browser-executable)
-### `--public-dir?`
+### `--public-dir`
Inherited from [`npx remotion render`](/docs/cli/render#--public-dir)
-### `--config?`
+### `--config`
Inherited from [`npx remotion render`](/docs/cli/render#--config)
-### `--bundle-cache?`
+### `--bundle-cache`
Inherited from [`npx remotion render`](/docs/cli/render#--bundle-cache)
-### `--video-bitrate?`
+### `--video-bitrate`
Inherited from [`npx remotion render`](/docs/cli/render#--video-bitrate)
-### `--audio-bitrate?`
+### `--audio-bitrate`
Inherited from [`npx remotion render`](/docs/cli/render#--audio-bitrate)
diff --git a/packages/docs/docs/cli/compositions.mdx b/packages/docs/docs/cli/compositions.mdx
index ba0d4710eb..8b7d42ad3f 100644
--- a/packages/docs/docs/cli/compositions.mdx
+++ b/packages/docs/docs/cli/compositions.mdx
@@ -74,7 +74,7 @@ _available since v2.6.5_
This will most notably disable CORS in Chrome among other security features.
-### ~`--disable-headless?`~
+### ~`--disable-headless`~
<Options id="disable-headless" />
diff --git a/packages/docs/docs/cli/upgrade.mdx b/packages/docs/docs/cli/upgrade.mdx
index 1e01d20150..3a9b53813d 100644
--- a/packages/docs/docs/cli/upgrade.mdx
+++ b/packages/docs/docs/cli/upgrade.mdx
@@ -13,7 +13,7 @@ npx remotion upgrade
## Flags
-### `--package-manager?`<AvailableFrom v="3.2.33"/>
+### `--package-manager`<AvailableFrom v="3.2.33"/>
Forces a specific package manager to be used. This is useful if you are using Remotion in a monorepo and you want to upgrade all packages at once. By default, Remotion will auto-detect the package manager.