Skip to content

πŸŽ₯ Make videos programmatically with React

document upgrade

Jonny Burgere55de44cb58a
diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.md
new file mode 100644
index 0000000000..601bb3293a
--- /dev/null
+++ b/packages/docs/docs/cli/compositions.md
@@ -0,0 +1,74 @@
+---
+title: npx remotion compositions
+sidebar_label: compositions
+---
+
+_Available from v2.6.12._
+
+Print list of composition IDs based on a path of an entry point.
+
+```bash
+npx remotion compositions <entry-file>
+```
+
+## Flags
+
+### `--props`
+
+[React Props that can be retrieved using `getInputProps()`.](/docs/get-input-props) Must be a serialized JSON string (`--props='{"hello": "world"}'`) or a path to a JSON file (`./path/to/props.json`).
+
+:::info
+Inline JSON string isn't supported on Windows because it removes the `"` character, use a temporary file instead.
+:::
+
+### `--config`
+
+Specify a location for the Remotion config file.
+
+### `--env-file`
+
+Specify a location for a dotenv file. Default `.env`. Available in v2.2 and later.
+
+### `--bundle-cache`
+
+[Enable or disable Webpack caching](/docs/config#setcachingenabled). This flag is enabled by default, use `--bundle-cache=false` to disable caching.
+
+### `--log`
+
+[Set the log level](/docs/config#setlevel). Increase or decrease the amount of output. Acceptable values: `error`, `warn`, `info` (_default_), `verbose`
+
+:::info
+If you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](/docs/config).
+:::
+
+### `--port`
+
+[Set a custom HTTP server port to host the Webpack bundle](/docs/config#setPort). If not defined, Remotion will try to find a free port.
+
+### `--ffmpeg-executable`
+
+[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.
+
+### `--ffprobe-executable`
+
+[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
+
+### `--timeout`
+
+Define how long it may take to resolve all [`delayRender()`](/docs/delay-render) calls before the composition fetching times out in milliseconds. Default: `30000`.
+
+:::info
+Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions#--timeout).
+:::
+
+### `--ignore-certificate-errors`
+
+Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored.
+
+### `--disable-web-security`
+
+This will most notably disable CORS in Chrome among other security features.
+
+### `--disable-headless`
+
+Opens an actual browser to observe the composition fetching.
diff --git a/packages/docs/docs/cli/upgrade.md b/packages/docs/docs/cli/upgrade.md
new file mode 100644
index 0000000000..985c5b1a67
--- /dev/null
+++ b/packages/docs/docs/cli/upgrade.md
@@ -0,0 +1,18 @@
+---
+title: npx remotion upgrade
+sidebar_label: upgrade
+---
+
+Upgrades all Remotion-related packages.
+
+```
+npx remotion upgrade
+```
+
+## Package manager support
+
+`npm`, `yarn` and `pnpm` are all supported.
+
+## Difference to `npm update`, `yarn upgrade`, `pnpm up`
+
+These commands, when executed without arguments will upgrade all dependencies in your project. We recommend against it because you may unintentionally break other parts of your project when you only wanted to upgrade Remotion.
diff --git a/packages/docs/docs/cli/versions.md b/packages/docs/docs/cli/versions.md
new file mode 100644
index 0000000000..f651c52be9
--- /dev/null
+++ b/packages/docs/docs/cli/versions.md
@@ -0,0 +1,30 @@
+---
+title: npx remotion versions
+sidebar_label: versions
+---
+
+_Available from Remotion v2.6.2_
+
+Prints out which versions of Remotion packages are installed.
+
+```
+npx remotion versions
+```
+
+In the optimal case, your versions are aligned and the output of the command looks like this:
+
+```
+On version: 3.0.19
+- @remotion/bundler
+- @remotion/cli
+- @remotion/eslint-config
+- @remotion/renderer
+- @remotion/media-utils
+- @remotion/babel-loader
+- @remotion/lambda
+- @remotion/three
+- @remotion/gif
+- remotion
+
+βœ… Great! All packages have the same version.
+```
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index febb085eba..09be30103f 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -119,7 +119,19 @@ module.exports = {
id: "cli/cli",
},
collapsed: true,
- items: ["cli/preview", "cli/render", "cli/still"],
+ items: [
+ "cli/preview",
+ "cli/render",
+ "cli/still",
+ {
+ type: "link",
+ href: "/docs/lambda/cli",
+ label: "lambda ↗️",
+ },
+ "cli/compositions",
+ "cli/versions",
+ "cli/upgrade",
+ ],
},
"config",
{