Skip to content

🎥 Make videos programmatically with React

docs: add cli testing instructions

Mohit Yadav18494cb72c87
diff --git a/packages/docs/docs/contributing/index.md b/packages/docs/docs/contributing/index.md
index d1e3ad5ae0..bc6df5b00d 100644
--- a/packages/docs/docs/contributing/index.md
+++ b/packages/docs/docs/contributing/index.md
@@ -102,6 +102,18 @@ cd packages/docs
pnpm start
```
+## Running the CLI
+
+You can test changes to the local instance of the changing to the `src/packages/examples` directory and using `pnpm` to execute the cli:
+
+```sh
+cd src/packages/examples
+# Example - Get available compositions
+pnpm exec remotion compositions
+# Example - Render command
+pnpm exec remotion render ten-frame-tester --output ../../out/video.mp4
+```
+
## Troubleshooting
If your `pnpm build` throws errors, oftentimes it is because of caching issues. You can resolve many of these errors by running
@@ -112,7 +124,6 @@ pnpm run clean
in the root directory. Make sure to beforehand kill any `pnpm watch` commands, as those might regenerate files as you clean them!
-
## Developing Rust parts
To develop the Rust parts of Remotion, see the README in [packages/renderer/README.md](https://github.com/remotion-dev/remotion/blob/main/packages/renderer/README.md)
diff --git a/packages/docs/docs/contributing/option.md b/packages/docs/docs/contributing/option.md
index e1986a761a..27a0abf49a 100644
--- a/packages/docs/docs/contributing/option.md
+++ b/packages/docs/docs/contributing/option.md
@@ -40,6 +40,10 @@ The option should be documented in the [API reference](/docs/api) and the [CLI r
Note from which version the option is available.
+## Testing changes to the CLI
+
+Check out the [Running the CLI](/docs/contributing) section in the contributing docs.
+
## See also
- [Implementing a new feature](/docs/contributing/feature)