Skip to content

🎥 Make videos programmatically with React

Updated docs for inline json

Shankhadeep Dey2ca4f2a8e97f
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.md
index 2658b04560..f41a168245 100644
--- a/packages/docs/docs/cli.md
+++ b/packages/docs/docs/cli.md
@@ -13,7 +13,7 @@ npx remotion render <entry-file> <composition-id> <output-location>
Besides choosing a video and output location with the command line arguments, the following flags are supported:
-- `--props`: React Props to pass to the root component of your video. Must be a JSON file Name.
+- `--props`: React Props to pass to the root component of your video. Must be a serialized JSON string or JSON file Name (`defaultProps.json`).
- `--concurrency`: [How many CPU threads to use.](/docs/config#setconcurrency) Minimum 1. The maximum is the amount of threads you have.
- `--pixel-format`: [Set a custom pixel format. See here for available values.](/docs/config#setpixelformat)
- `--image-format`: [`jpeg` or `png` - JPEG is faster, but supports transparency.](/docs/config#setimageformat) The default image format is `jpeg` since v1.1. Flag available since v1.4.
diff --git a/packages/docs/docs/parametrized-rendering.md b/packages/docs/docs/parametrized-rendering.md
index 27fa65a9b0..ae1ffef748 100644
--- a/packages/docs/docs/parametrized-rendering.md
+++ b/packages/docs/docs/parametrized-rendering.md
@@ -66,6 +66,11 @@ make sure `defaultProps.json` is in your root folder.
"propTwo": 10
}
```
+### Or for inline json
+
+```bash
+npx remotion render src/index.tsx HelloWorld helloworld.mp4 --props='{"propOne": "Hi", "propTwo": 10}'
+```
[See also: CLI flags](/docs/cli)