Skip to content

🎥 Make videos programmatically with React

update also lambda

Jonny Burger5982e4ef4efa
diff --git a/packages/docs/docs/cli/compositions.mdx b/packages/docs/docs/cli/compositions.mdx
index b1ecd34b2c..b602c1929c 100644
--- a/packages/docs/docs/cli/compositions.mdx
+++ b/packages/docs/docs/cli/compositions.mdx
@@ -61,7 +61,7 @@ If you don't feel like passing command line flags every time, consider creating
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).
+Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions/deploy#--timeout).
:::
### `--ignore-certificate-errors`
diff --git a/packages/docs/docs/cli/render.mdx b/packages/docs/docs/cli/render.mdx
index 50375bbb92..277226d8a5 100644
--- a/packages/docs/docs/cli/render.mdx
+++ b/packages/docs/docs/cli/render.mdx
@@ -178,7 +178,7 @@ For example only every second frame, every third frame and so on. Only works for
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout) in milliseconds. Default: `30000`.
:::info
-Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions#--timeout).
+Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions/deploy#--timeout).
:::
### `--ignore-certificate-errors`<AvailableFrom v="2.6.5" />
diff --git a/packages/docs/docs/cli/still.mdx b/packages/docs/docs/cli/still.mdx
index ca01417959..f4dcb0f262 100644
--- a/packages/docs/docs/cli/still.mdx
+++ b/packages/docs/docs/cli/still.mdx
@@ -93,7 +93,7 @@ From v3.2.27, negative values are allowed, with `-1` being the last frame.
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout) in milliseconds. Default: `30000`.
:::info
-Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions#--timeout).
+Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions/deploy#--timeout).
:::
### `--ignore-certificate-errors`<AvailableFrom v="2.6.5" />
diff --git a/packages/docs/docs/cloudrun/setup.mdx b/packages/docs/docs/cloudrun/setup.mdx
index 990c298b87..5e390ea15e 100644
--- a/packages/docs/docs/cloudrun/setup.mdx
+++ b/packages/docs/docs/cloudrun/setup.mdx
@@ -138,7 +138,7 @@ npx remotion cloudrun sites create src/index.ts --site-name=my-video
A [`serveUrl`](/docs/terminology/serve-url) will be printed pointing to the deployed project.
-When you update your Remotion code in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites#--site-name), a unique URL will be generated on every deploy.
+When you update your Remotion code in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites/create#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites/create#--site-name), a unique URL will be generated on every deploy.
</TabItem>
<TabItem value="node">
diff --git a/packages/docs/docs/lambda/bucket-naming.mdx b/packages/docs/docs/lambda/bucket-naming.mdx
index cb574a8a2d..dd14b0ec7f 100644
--- a/packages/docs/docs/lambda/bucket-naming.mdx
+++ b/packages/docs/docs/lambda/bucket-naming.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-lambda-bucket-naming.png
title: Bucket names in Remotion Lambda
slug: /lambda/bucket-naming
sidebar_label: Bucket naming
-crumb: "@remotion/lambda"
+crumb: '@remotion/lambda'
---
A Remotion Lambda bucket name (for example `remotionlambda-apsouth1-3ysk0nyazp`) has two special attributes:
@@ -34,12 +34,12 @@ To use a custom bucket name, you need to:
- [`npx remotion lambda render`](/docs/lambda/cli/render)
- [`npx remotion lambda still`](/docs/lambda/cli/render)
- [`npx remotion lambda compositions`](/docs/lambda/cli/render)
- - [`npx remotion lambda sites create`](/docs/lambda/cli/sites#create)
- - [`npx remotion lambda sites rm`](/docs/lambda/cli/sites#rm)
- - [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites#rmall)
+ - [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create)
+ - [`npx remotion lambda sites rm`](/docs/lambda/cli/sites/rm)
+ - [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites/rmall)
using the `--force-bucket-name` or `forceBucketName` option respectively.
- Be aware that the following APIs are unavailable when using custom bucket names:
- - [`npx remotion lambda sites ls`](/docs/lambda/cli/sites#ls)
+ - [`npx remotion lambda sites ls`](/docs/lambda/cli/sites/ls)
- [`getSites()`](/docs/lambda/getsites)
- [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket)
- Be aware that you are opting out of automatic bucket discovery and validation. Be careful to:
diff --git a/packages/docs/docs/lambda/cli/compositions.mdx b/packages/docs/docs/lambda/cli/compositions.mdx
index 4b4b9c210c..3ff71cfad0 100644
--- a/packages/docs/docs/lambda/cli/compositions.mdx
+++ b/packages/docs/docs/lambda/cli/compositions.mdx
@@ -15,7 +15,7 @@ Print list of composition IDs from a serve URL, fetched from inside a Lambda fun
npx remotion lambda compositions <serve-url>
```
-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites#create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
<details>
<summary>Show output</summary>
@@ -96,7 +96,7 @@ If you don't feel like passing command line flags every time, consider creating
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).
+Not to be confused with the [`--timeout` flag when deploying a Lambda function](/docs/lambda/cli/functions/deploy#--timeout).
:::
### `--ignore-certificate-errors`
diff --git a/packages/docs/docs/lambda/cli/functions.mdx b/packages/docs/docs/lambda/cli/functions.mdx
index 17bb5cd203..9bee56febc 100644
--- a/packages/docs/docs/lambda/cli/functions.mdx
+++ b/packages/docs/docs/lambda/cli/functions.mdx
@@ -1,231 +1,20 @@
---
-image: /generated/articles-docs-lambda-cli-functions.png
-id: functions
sidebar_label: functions
title: 'npx remotion lambda functions'
slug: /lambda/cli/functions
crumb: 'Lambda CLI Reference'
---
-import {DefaultMemorySize} from '../../../components/lambda/default-memory-size';
-import {DefaultTimeout} from '../../../components/lambda/default-timeout';
-import {DefaultLogRetention} from '../../../components/lambda/default-log-retention';
-
The `npx remotion lambda functions` command allows you to deploy, view and delete AWS lambda functions that can render videos.
-- [`deploy`](#deploy)
-- [`ls`](#ls)
-- [`rm`](#rm)
-- [`rmall`](#rmall)
+- [`deploy`](/docs/lambda/cli/functions/deploy)
+- [`ls`](/docs/lambda/cli/functions/ls)
+- [`rm`](/docs/lambda/cli/functions/rm)
+- [`rmall`](/docs/lambda/cli/functions/rmall)
You only need one function per AWS region and Remotion version. Suggested reading: [Do I need to deploy a function for each render?](/docs/lambda/faq#do-i-need-to-deploy-a-function-for-each-render)
-## deploy
-
-```
-npx remotion lambda functions deploy
-```
-
-Creates a new function in your AWS account. If a function in the same region, with the same Remotion version, with the same amount of memory, disk space and timeout already exists, the name of the already deployed function will be returned instead.
-
-By default, a CloudWatch Log Group will be created that will log debug information to CloudWatch that you can consult in the case something is going wrong. The default retention period for these logs is 14 days, which can be changed.
-
-<details>
-<summary>
-Example output
-</summary>
-<pre>
-Region = eu-central-1,
-Memory = 2048MB,
-Disk = 2048MB,
-Timeout = 120sec,
-Version = 2021-12-17,
-CloudWatch Enabled = true,
-CloudWatch Retention Period = 14 days
-VPC Subnet IDs = subnet-0f6a0f6a0f6a0f6a0, subnet-0f6a0f6a0f6a0f6a1
-VPC Security Group IDs = sg-0f6a0f6a0f6a0f6a0, sg-0f6a0f6a0f6a0f6a1
-<br/>
-Deployed as remotion-render-2021-12-17-2048mb-120sec
-<br/>
-
-</pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select.
-
-### `--memory`
-
-Memory size in megabytes. Default: <DefaultMemorySize /> MB.
-
-### `--disk`
-
-Disk size in megabytes. See also: [Disk size](/docs/lambda/disk-size).
-
-| Remotion Version | Default |
-| ---------------- | ------- |
-| &lt;5.0.0 | 2048MB |
-| &gt;=5.0.0 | 10240MB |
-
-### `--timeout`
-
-Timeout of the Lambda function in seconds. Default: <DefaultTimeout /> seconds.
-
-:::note
-Not to be confused with the [`--timeout` flag for `npx remotion lambda render` which defines the timeout for `delayRender()`](/docs/cli/render#--timeout).
-:::
-
-### `--disable-cloudwatch`
-
-Does not create a CloudWatch log group.
-
-### `--retention-period`
-
-Retention period for the CloudWatch Logs in days. Default: <DefaultLogRetention /> days.
-
-### `--enable-lambda-insights`<AvailableFrom v="4.0.61" />
-
-<Options id="enable-lambda-insights" />
-
-### `--custom-role-arn`
-
-Use a custom role for the function instead of the default (`arn:aws:iam::[aws-account-id]:role/remotion-lambda-role`)
-
-### `--quiet`, `-q`
-
-Only logs the function name.
-
-### `--vpc-subnet-ids`<AvailableFrom v="4.0.160" />
-
-Comma separated list of VPC subnet IDs to use for the Lambda function VPC configuration.
-
-### `--vpc-security-group-ids`<AvailableFrom v="4.0.160" />
-
-Comma separated list of VPC security group IDs to use for the Lambda function VPC configuration.
-
-### `--runtime-preference`<AvailableFrom v="4.0.205" />
-
-One of:
-
-- `default`: Currently resolving to `prefer-cjk`
-- `prefer-apple-emojis`: Use Apple Emojis instead of Google Emojis. CJK characters will be removed.
-- `prefer-cjk`: Include CJK (Chinese, Japanese, Korean) characters and Google Emojis. Apple Emojis will be removed.
-
-:::note
-Apple Emojis are intellectual property of Apple Inc.
-You are responsible for the use of Apple Emojis in your project.
-:::
-
-## ls
-
-```
-npx remotion lambda functions ls
-```
-
-Lists the functions that you have deployed to AWS in the [selected region](/docs/lambda/region-selection).
-
-<details>
-<summary>
-Example output
-</summary>
-<pre>
-6 functions in the eu-central-1 region<br/>
-Name Version Memory (MB) Timeout (sec) <br/>
-remotion-render-2021-12-16-2048mb-240sec 2021-12-16 2048 240 <br/>
-remotion-render-2021-12-17-2048mb-120sec 2021-12-17 2048 120 <br/>
-remotion-render-2021-12-15-2048mb-240sec 2021-12-15 2048 240
-<br/>
-
-</pre>
-</details>
-
-### `--compatible-only`<AvailableFrom v="4.0.164" />
-
-Only lists functions that have the same version as the CLI you are calling the command from.
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select.
-
-### `--quiet`, `-q`
-
-Prints only the function names in a space-separated list. If no functions exist, prints `()`
-
-## rm
-
-```
-npx remotion lambda functions rm remotion-render-2021-12-16-2048mb-240sec
-```
-
-Removes one or more functions from your AWS infrastructure. Pass a space-separated list of functions you'd like to delete.
-
-<details>
-<summary>
-Example output
-</summary>
-<pre>
-<br/>
-Function name: remotion-render-2021-12-16-2048mb-240sec<br/>
-Memory: 2048MB<br/>
-Timeout: 120sec<br/>
-Version: 2021-12-16<br/>
-Delete? (Y/n): Y<br/>
-Deleted!
-<br/>
-
-</pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select.
-
-### `--yes`, `-y`
-
-Skips confirmation.
-
-## rmall
-
-```
-npx remotion lambda functions rmall
-```
-
-Removes all functions in a region from your AWS infrastructure.
-
-<details>
-<summary>
-Example output
-</summary>
-<pre>
-<br/>
-Function name: remotion-render-2021-12-16-2048mb-240sec<br/>
-Memory: 2048MB<br/>
-Timeout: 120sec<br/>
-Version: 2021-12-16<br/>
-Delete? (Y/n): Y<br/>
-Deleted!
-<br/>
-Function name: remotion-render-2021-12-18-2048mb-240sec<br/>
-Memory: 2048MB<br/>
-Timeout: 120sec<br/>
-Version: 2021-12-16<br/>
-Delete? (Y/n): Y<br/>
-Deleted!
-<br/>
-
-</pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select.
-
-### `--yes`, `-y`
-
-Skips confirmation.
-
## See also
- [Do I need to deploy a function for each render?](/docs/lambda/faq#do-i-need-to-deploy-a-function-for-each-render)
-- [Setup guide](/docs/lambda/setup)
+- [Setup guide](/docs/lambda/setup)
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/functions/deploy.mdx b/packages/docs/docs/lambda/cli/functions/deploy.mdx
new file mode 100644
index 0000000000..d0fbeb81ab
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/functions/deploy.mdx
@@ -0,0 +1,106 @@
+---
+image: /generated/articles-docs-lambda-cli-functions-deploy.png
+sidebar_label: deploy
+title: 'npx remotion lambda functions deploy'
+slug: /lambda/cli/functions/deploy
+crumb: 'Lambda CLI Reference'
+---
+
+import {DefaultMemorySize} from '../../../../components/lambda/default-memory-size';
+import {DefaultTimeout} from '../../../../components/lambda/default-timeout';
+import {DefaultLogRetention} from '../../../../components/lambda/default-log-retention';
+
+```
+npx remotion lambda functions deploy
+```
+
+Creates a new function in your AWS account. If a function in the same region, with the same Remotion version, with the same amount of memory, disk space and timeout already exists, the name of the already deployed function will be returned instead.
+
+By default, a CloudWatch Log Group will be created that will log debug information to CloudWatch that you can consult in the case something is going wrong. The default retention period for these logs is 14 days, which can be changed.
+
+<details>
+<summary>
+Example output
+</summary>
+<pre>
+Region = eu-central-1,
+Memory = 2048MB,
+Disk = 2048MB,
+Timeout = 120sec,
+Version = 2021-12-17,
+CloudWatch Enabled = true,
+CloudWatch Retention Period = 14 days
+VPC Subnet IDs = subnet-0f6a0f6a0f6a0f6a0, subnet-0f6a0f6a0f6a0f6a1
+VPC Security Group IDs = sg-0f6a0f6a0f6a0f6a0, sg-0f6a0f6a0f6a0f6a1
+<br/>
+Deployed as remotion-render-2021-12-17-2048mb-120sec
+<br/>
+
+</pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select.
+
+## `--memory`
+
+Memory size in megabytes. Default: <DefaultMemorySize /> MB.
+
+## `--disk`
+
+Disk size in megabytes. See also: [Disk size](/docs/lambda/disk-size).
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| &lt;5.0.0 | 2048MB |
+| &gt;=5.0.0 | 10240MB |
+
+## `--timeout`
+
+Timeout of the Lambda function in seconds. Default: <DefaultTimeout /> seconds.
+
+:::note
+Not to be confused with the [`--timeout` flag for `npx remotion lambda render` which defines the timeout for `delayRender()`](/docs/cli/render#--timeout).
+:::
+
+## `--disable-cloudwatch`
+
+Does not create a CloudWatch log group.
+
+## `--retention-period`
+
+Retention period for the CloudWatch Logs in days. Default: <DefaultLogRetention /> days.
+
+## `--enable-lambda-insights`<AvailableFrom v="4.0.61" />
+
+<Options id="enable-lambda-insights" />
+
+## `--custom-role-arn`
+
+Use a custom role for the function instead of the default (`arn:aws:iam::[aws-account-id]:role/remotion-lambda-role`)
+
+## `--quiet`, `-q`
+
+Only logs the function name.
+
+## `--vpc-subnet-ids`<AvailableFrom v="4.0.160" />
+
+Comma separated list of VPC subnet IDs to use for the Lambda function VPC configuration.
+
+## `--vpc-security-group-ids`<AvailableFrom v="4.0.160" />
+
+Comma separated list of VPC security group IDs to use for the Lambda function VPC configuration.
+
+## `--runtime-preference`<AvailableFrom v="4.0.205" />
+
+One of:
+
+- `default`: Currently resolving to `prefer-cjk`
+- `prefer-apple-emojis`: Use Apple Emojis instead of Google Emojis. CJK characters will be removed.
+- `prefer-cjk`: Include CJK (Chinese, Japanese, Korean) characters and Google Emojis. Apple Emojis will be removed.
+
+:::note
+Apple Emojis are intellectual property of Apple Inc.
+You are responsible for the use of Apple Emojis in your project.
+:::
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/functions/ls.mdx b/packages/docs/docs/lambda/cli/functions/ls.mdx
new file mode 100644
index 0000000000..095d423df4
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/functions/ls.mdx
@@ -0,0 +1,40 @@
+---
+image: /generated/articles-docs-lambda-cli-functions-ls.png
+sidebar_label: ls
+title: 'npx remotion lambda functions ls'
+slug: /lambda/cli/functions/ls
+crumb: 'Lambda CLI Reference'
+---
+
+```
+npx remotion lambda functions ls
+```
+
+Lists the functions that you have deployed to AWS in the [selected region](/docs/lambda/region-selection).
+
+<details>
+<summary>
+Example output
+</summary>
+<pre>
+6 functions in the eu-central-1 region<br/>
+Name Version Memory (MB) Timeout (sec) <br/>
+remotion-render-2021-12-16-2048mb-240sec 2021-12-16 2048 240 <br/>
+remotion-render-2021-12-17-2048mb-120sec 2021-12-17 2048 120 <br/>
+remotion-render-2021-12-15-2048mb-240sec 2021-12-15 2048 240
+<br/>
+
+</pre>
+</details>
+
+## `--compatible-only`<AvailableFrom v="4.0.164" />
+
+Only lists functions that have the same version as the CLI you are calling the command from.
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select.
+
+## `--quiet`, `-q`
+
+Prints only the function names in a space-separated list. If no functions exist, prints `()`
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/functions/rm.mdx b/packages/docs/docs/lambda/cli/functions/rm.mdx
new file mode 100644
index 0000000000..670dea7445
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/functions/rm.mdx
@@ -0,0 +1,38 @@
+---
+image: /generated/articles-docs-lambda-cli-functions-rm.png
+sidebar_label: rm
+title: 'npx remotion lambda functions rm'
+slug: /lambda/cli/functions/rm
+crumb: 'Lambda CLI Reference'
+---
+
+```
+npx remotion lambda functions rm remotion-render-2021-12-16-2048mb-240sec
+```
+
+Removes one or more functions from your AWS infrastructure. Pass a space-separated list of functions you'd like to delete.
+
+<details>
+<summary>
+Example output
+</summary>
+<pre>
+<br/>
+Function name: remotion-render-2021-12-16-2048mb-240sec<br/>
+Memory: 2048MB<br/>
+Timeout: 120sec<br/>
+Version: 2021-12-16<br/>
+Delete? (Y/n): Y<br/>
+Deleted!
+<br/>
+
+</pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select.
+
+## `--yes`, `-y`
+
+Skips confirmation.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/functions/rmall.mdx b/packages/docs/docs/lambda/cli/functions/rmall.mdx
new file mode 100644
index 0000000000..26e4bbaab7
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/functions/rmall.mdx
@@ -0,0 +1,45 @@
+---
+image: /generated/articles-docs-lambda-cli-functions-rmall.png
+sidebar_label: rmall
+title: 'npx remotion lambda functions rmall'
+slug: /lambda/cli/functions/rmall
+crumb: 'Lambda CLI Reference'
+---
+
+```
+npx remotion lambda functions rmall
+```
+
+Removes all functions in a region from your AWS infrastructure.
+
+<details>
+<summary>
+Example output
+</summary>
+<pre>
+<br/>
+Function name: remotion-render-2021-12-16-2048mb-240sec<br/>
+Memory: 2048MB<br/>
+Timeout: 120sec<br/>
+Version: 2021-12-16<br/>
+Delete? (Y/n): Y<br/>
+Deleted!
+<br/>
+Function name: remotion-render-2021-12-18-2048mb-240sec<br/>
+Memory: 2048MB<br/>
+Timeout: 120sec<br/>
+Version: 2021-12-16<br/>
+Delete? (Y/n): Y<br/>
+Deleted!
+<br/>
+
+</pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select.
+
+## `--yes`, `-y`
+
+Skips confirmation.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/render.mdx b/packages/docs/docs/lambda/cli/render.mdx
index 831c0e18fe..8155ecf674 100644
--- a/packages/docs/docs/lambda/cli/render.mdx
+++ b/packages/docs/docs/lambda/cli/render.mdx
@@ -19,7 +19,7 @@ npx remotion lambda render <serve-url> [<composition-id>] [<output-location>]
Arguments:
-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites#create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
- The [Composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.
- The `output-location` parameter is optional. If you don't specify it, the video is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.
diff --git a/packages/docs/docs/lambda/cli/sites.mdx b/packages/docs/docs/lambda/cli/sites.mdx
index 867fae18a7..dabc986f46 100644
--- a/packages/docs/docs/lambda/cli/sites.mdx
+++ b/packages/docs/docs/lambda/cli/sites.mdx
@@ -1,6 +1,4 @@
---
-image: /generated/articles-docs-lambda-cli-sites.png
-id: sites
sidebar_label: sites
title: 'npx remotion lambda sites'
slug: /lambda/cli/sites
@@ -9,394 +7,7 @@ crumb: 'Lambda CLI Reference'
The `npx remotion lambda sites` command allows to create, view and delete Remotion projects in your S3 bucket.
-- [`create`](#create)
-- [`ls`](#ls)
-- [`rm`](#rm)
-- [`rmall`](#rmall)
-
-## create
-
-```
-npx remotion lambda sites create <entry-point>?
-```
-
-You may pass an [entry point](/docs/terminology/entry-point) as the first argument, otherwise the entry point will be [determined](/docs/terminology/entry-point#which-entry-point-is-being-used).
-
-Bundle and upload a Remotion video to an S3 bucket.
-
-The result will be a URL such as `https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html`.
-
-:::note
-If you make changes locally, you need to redeploy the site. Use [`--site-name`](#--site-name) to overwrite an existing site.
-:::
-
-You can use this "Serve URL" to render a video on Remotion Lambda using:
-
-- The [`npx remotion lambda render`](/docs/lambda/cli/render) and [`npx remotion lambda still`](/docs/lambda/cli/still) commands
-- The [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) functions.
-- Locally using the [`renderMedia()`](/docs/renderer/render-media) and [`renderStill()`](/docs/renderer/render-still) functions.
-- Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands
-
-If you are rendering on Lambda, you can also pass the site Name (in this case `abcdef`) as an abbreviation.
-
-<details>
- <summary>Example output</summary>
- <pre>
- (1/3) [====================] Bundled video 3975ms
- <br />
- (2/3) [====================] Created bucket 457ms
- <br />
- (3/3) [====================] Uploaded to S3 25118ms
- <br />
- <br />
- Deployed to S3!
- <br />
- Serve URL: https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html
- <br />
- Site Name: abcdef
- <br />
- </pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
-
-### `--site-name`
-
-Uploads the project to a specific directory and returns a deterministic URL. If a site already existed under this name, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
-
-```
-npx remotion lambda sites create src/index.ts --site-name=my-project
-```
-
-### `--force-bucket-name`<AvailableFrom v="3.3.42" />
-
-Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
-
-### `--privacy`<AvailableFrom v="3.3.97" />
-
-Either `public` (default) or `no-acl` if you are not using ACL. Sites must have a public URL to be able to be rendered on Lambda, since the headless browser opens that URL.
-
-### `--public-dir`<AvailableFrom v="4.0.140" />
-
-<Options id="public-dir" />
-
-### `--enable-folder-expiry`<AvailableFrom v="4.0.32" />
-
-<Options id="enable-folder-expiry" />
-
-### `--throw-if-site-exists`<AvailableFrom v="4.0.141"/>
-
-<Options id="throw-if-site-exists" />
-
-### `--disable-git-source`<AvailableFrom v="4.0.182" />
-
-<Options id="disable-git-source" />
-
-### `--force-path-style`<AvailableFrom v="4.0.202" />
-
-Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
-
-<br />
-<br />
-<hr />
-
-## ls
-
-```
-npx remotion lambda sites ls
-```
-
-Get a list of sites. The URL that is printed can be passed to the `render` command to render a video.
-
-<details>
- <summary>Example output</summary>
- <pre>
- Site Name Bucket Size Last updated
- <br />
- pr6fwglz05 remotionlambda-abcdefg 14.7 MB 2021-12-02
- <br />
- https://remotionlambda-abcdefg.s3.eu-central-1.amazonaws.com/sites/pr6fwglz05/index.html
- <br />
- <br />
- testbed remotionlambda-abcdefg 14.7 MB 2021-12-02 <br />
- https://remotionlambda-abcdefg.s3.eu-central-1.amazonaws.com/sites/testbed/index.html
- <br />
- </pre>
-</details>
-
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
-
-### `--quiet`, `-q`
-
-Returns only a list of space-separated sites.
-
-```
-npx remotion lambda sites ls -q
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- pr6fwglz05 testbed
- <br />
- </pre>
-</details>
-
-### `--force-path-style`<AvailableFrom v="4.0.202" />
-
-Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
-
-
-## rm
-
-Removes a site (or multiple) from S3 by its ID.
-
-```bash
-npx remotion lambda sites rm abcdef
-npx remotion lambda sites rm abcdef my-project # multiple at once
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- Site abcdef in bucket remotionlambda-gc1w0xbfzl (14.7 MB): Delete? (Y/n): Y
- <br />
- Deleted sites/abcdef/052787b08233d85edebfc4ce4610944e.mp4
- <br />
- Deleted sites/abcdef/258.bundle.js
- <br />
- Deleted sites/abcdef/15.bundle.js
- <br />
- Deleted sites/abcdef/249.bundle.js.map
- <br />
- Deleted sites/abcdef/263.bundle.js
- <br />
- Deleted sites/abcdef/143.bundle.js
- <br />
- Deleted sites/abcdef/258.bundle.js.map
- <br />
- Deleted sites/abcdef/15.bundle.js.map
- <br />
- Deleted sites/abcdef/185.bundle.js.map
- <br />
- Deleted sites/abcdef/249.bundle.js
- <br />
- Deleted sites/abcdef/143.bundle.js.map
- <br />
- Deleted sites/abcdef/185.bundle.js
- <br />
- Deleted sites/abcdef/1f2d09019ff34eed846a5151b8561d5b.mp4
- <br />
- Deleted sites/abcdef/263.bundle.js.map
- <br />
- Deleted sites/abcdef/268.bundle.js
- <br />
- Deleted sites/abcdef/378.bundle.js.map
- <br />
- Deleted sites/abcdef/268.bundle.js.map
- <br />
- Deleted sites/abcdef/378.bundle.js
- <br />
- Deleted sites/abcdef/2b91c5234e41d3c36d4bf6df37876958.webm
- <br />
- Deleted sites/abcdef/450.bundle.js
- <br />
- Deleted sites/abcdef/46.bundle.js.map
- <br />
- Deleted sites/abcdef/46.bundle.js
- <br />
- Deleted sites/abcdef/450.bundle.js.map
- <br />
- Deleted sites/abcdef/534.bundle.js.map
- <br />
- Deleted sites/abcdef/569.bundle.js
- <br />
- Deleted sites/abcdef/3577958454aa99ad707b596f65151746.webm
- <br />
- Deleted sites/abcdef/534.bundle.js
- <br />
- Deleted sites/abcdef/575.bundle.js.map
- <br />
- Deleted sites/abcdef/575.bundle.js
- <br />
- Deleted sites/abcdef/569.bundle.js.map
- <br />
- Deleted sites/abcdef/801.bundle.js
- <br />
- Deleted sites/abcdef/7badbf53d3130d91b90c46181a2ecdc4.webm
- <br />
- Deleted sites/abcdef/801.bundle.js.map
- <br />
- Deleted sites/abcdef/873.bundle.js
- <br />
- Deleted sites/abcdef/98.bundle.js.map
- <br />
- Deleted sites/abcdef/bff822b868a2b87b31877f3606c9cc13.mp3
- <br />
- Deleted sites/abcdef/873.bundle.js.map
- <br />
- Deleted sites/abcdef/98.bundle.js
- <br />
- Deleted sites/abcdef/a2f36e3a48b4989e0da1fea9959fb35f.mp3
- <br />
- Deleted sites/abcdef/bundle.js
- <br />
- Deleted sites/abcdef/bundle.js.map
- <br />
- Deleted sites/abcdef/a7d87d9934059032eebb9c1536378a2a.webm
- <br />
- Deleted sites/abcdef/index.html
- <br />
- Deleted site abcdef and freed up 14.7 MB.
- <br />
- </pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
-
-### `--yes`, `-y`
-
-Removes a site without asking for confirmation.
-
-```
-npx remotion lambda sites rm abcdef -y
-```
-
-### `--force-bucket-name`<AvailableFrom v="3.3.42" />
-
-Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
-
-### `--force-path-style`<AvailableFrom v="4.0.202" />
-
-Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
-
-## rmall
-
-Remove all sites in the selected AWS region.
-
-```bash
-npx remotion lambda sites rmall
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- Site abcdef in bucket remotionlambda-gc1w0xbfzl (14.7 MB): Delete? (Y/n): Y
- <br />
- Deleted sites/abcdef/052787b08233d85edebfc4ce4610944e.mp4
- <br />
- Deleted sites/abcdef/258.bundle.js
- <br />
- Deleted sites/abcdef/15.bundle.js
- <br />
- Deleted sites/abcdef/249.bundle.js.map
- <br />
- Deleted sites/abcdef/263.bundle.js
- <br />
- Deleted sites/abcdef/143.bundle.js
- <br />
- Deleted sites/abcdef/258.bundle.js.map
- <br />
- Deleted sites/abcdef/15.bundle.js.map
- <br />
- Deleted sites/abcdef/185.bundle.js.map
- <br />
- Deleted sites/abcdef/249.bundle.js
- <br />
- Deleted sites/abcdef/143.bundle.js.map
- <br />
- Deleted sites/abcdef/185.bundle.js
- <br />
- Deleted sites/abcdef/1f2d09019ff34eed846a5151b8561d5b.mp4
- <br />
- Deleted sites/abcdef/263.bundle.js.map
- <br />
- Deleted sites/abcdef/268.bundle.js
- <br />
- Deleted sites/abcdef/378.bundle.js.map
- <br />
- Deleted sites/abcdef/268.bundle.js.map
- <br />
- Deleted sites/abcdef/378.bundle.js
- <br />
- Deleted sites/abcdef/2b91c5234e41d3c36d4bf6df37876958.webm
- <br />
- Deleted sites/abcdef/450.bundle.js
- <br />
- Deleted sites/abcdef/46.bundle.js.map
- <br />
- Deleted sites/abcdef/46.bundle.js
- <br />
- Deleted sites/abcdef/450.bundle.js.map
- <br />
- Deleted sites/abcdef/534.bundle.js.map
- <br />
- Deleted sites/abcdef/569.bundle.js
- <br />
- Deleted sites/abcdef/3577958454aa99ad707b596f65151746.webm
- <br />
- Deleted sites/abcdef/534.bundle.js
- <br />
- Deleted sites/abcdef/575.bundle.js.map
- <br />
- Deleted sites/abcdef/575.bundle.js
- <br />
- Deleted sites/abcdef/569.bundle.js.map
- <br />
- Deleted sites/abcdef/801.bundle.js
- <br />
- Deleted sites/abcdef/7badbf53d3130d91b90c46181a2ecdc4.webm
- <br />
- Deleted sites/abcdef/801.bundle.js.map
- <br />
- Deleted sites/abcdef/873.bundle.js
- <br />
- Deleted sites/abcdef/98.bundle.js.map
- <br />
- Deleted sites/abcdef/bff822b868a2b87b31877f3606c9cc13.mp3
- <br />
- Deleted sites/abcdef/873.bundle.js.map
- <br />
- Deleted sites/abcdef/98.bundle.js
- <br />
- Deleted sites/abcdef/a2f36e3a48b4989e0da1fea9959fb35f.mp3
- <br />
- Deleted sites/abcdef/bundle.js
- <br />
- Deleted sites/abcdef/bundle.js.map
- <br />
- Deleted sites/abcdef/a7d87d9934059032eebb9c1536378a2a.webm
- <br />
- Deleted sites/abcdef/index.html
- <br />
- Deleted site abcdef and freed up 14.7 MB.
- <br />
- </pre>
-</details>
-
-### `--region`
-
-The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
-
-### `--yes`, `-y`
-
-Removes all sites without asking for confirmation.
-
-```
-npx remotion lambda sites rmall -y
-```
-
-### `--force-bucket-name`<AvailableFrom v="3.3.42" />
-
-Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
-
-### `--force-path-style`<AvailableFrom v="4.0.202" />
-
-Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
+- [`create`](/docs/lambda/cli/sites/create)
+- [`ls`](/docs/lambda/cli/sites/ls)
+- [`rm`](/docs/lambda/cli/sites/rm)
+- [`rmall`](/docs/lambda/cli/sites/rmall)
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/sites/create.mdx b/packages/docs/docs/lambda/cli/sites/create.mdx
new file mode 100644
index 0000000000..77d3ca1599
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/sites/create.mdx
@@ -0,0 +1,89 @@
+---
+image: /generated/articles-docs-lambda-cli-sites-create.png
+sidebar_label: create
+title: 'npx remotion lambda sites create'
+slug: /lambda/cli/sites/create
+crumb: 'Lambda CLI Reference'
+---
+
+```
+npx remotion lambda sites create <entry-point>?
+```
+
+You may pass an [entry point](/docs/terminology/entry-point) as the first argument, otherwise the entry point will be [determined](/docs/terminology/entry-point#which-entry-point-is-being-used).
+
+Bundle and upload a Remotion video to an S3 bucket.
+
+The result will be a URL such as `https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html`.
+
+:::note
+If you make changes locally, you need to redeploy the site. Use [`--site-name`](#--site-name) to overwrite an existing site.
+:::
+
+You can use this "Serve URL" to render a video on Remotion Lambda using:
+
+- The [`npx remotion lambda render`](/docs/lambda/cli/render) and [`npx remotion lambda still`](/docs/lambda/cli/still) commands
+- The [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) functions.
+- Locally using the [`renderMedia()`](/docs/renderer/render-media) and [`renderStill()`](/docs/renderer/render-still) functions.
+- Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands
+
+If you are rendering on Lambda, you can also pass the site Name (in this case `abcdef`) as an abbreviation.
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ (1/3) [====================] Bundled video 3975ms
+ <br />
+ (2/3) [====================] Created bucket 457ms
+ <br />
+ (3/3) [====================] Uploaded to S3 25118ms
+ <br />
+ <br />
+ Deployed to S3!
+ <br />
+ Serve URL: https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html
+ <br />
+ Site Name: abcdef
+ <br />
+ </pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
+
+## `--site-name`
+
+Uploads the project to a specific directory and returns a deterministic URL. If a site already existed under this name, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
+
+```
+npx remotion lambda sites create src/index.ts --site-name=my-project
+```
+
+## `--force-bucket-name`<AvailableFrom v="3.3.42" />
+
+Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
+
+## `--privacy`<AvailableFrom v="3.3.97" />
+
+Either `public` (default) or `no-acl` if you are not using ACL. Sites must have a public URL to be able to be rendered on Lambda, since the headless browser opens that URL.
+
+## `--public-dir`<AvailableFrom v="4.0.140" />
+
+<Options id="public-dir" />
+
+## `--enable-folder-expiry`<AvailableFrom v="4.0.32" />
+
+<Options id="enable-folder-expiry" />
+
+## `--throw-if-site-exists`<AvailableFrom v="4.0.141"/>
+
+<Options id="throw-if-site-exists" />
+
+## `--disable-git-source`<AvailableFrom v="4.0.182" />
+
+<Options id="disable-git-source" />
+
+## `--force-path-style`<AvailableFrom v="4.0.202" />
+
+Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/sites/ls.mdx b/packages/docs/docs/lambda/cli/sites/ls.mdx
new file mode 100644
index 0000000000..7969edf8bd
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/sites/ls.mdx
@@ -0,0 +1,54 @@
+---
+image: /generated/articles-docs-lambda-cli-sites-ls.png
+sidebar_label: ls
+title: 'npx remotion lambda sites ls'
+slug: /lambda/cli/sites/ls
+crumb: 'Lambda CLI Reference'
+---
+
+```
+npx remotion lambda sites ls
+```
+
+Get a list of sites. The URL that is printed can be passed to the `render` command to render a video.
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Site Name Bucket Size Last updated
+ <br />
+ pr6fwglz05 remotionlambda-abcdefg 14.7 MB 2021-12-02
+ <br />
+ https://remotionlambda-abcdefg.s3.eu-central-1.amazonaws.com/sites/pr6fwglz05/index.html
+ <br />
+ <br />
+ testbed remotionlambda-abcdefg 14.7 MB 2021-12-02 <br />
+ https://remotionlambda-abcdefg.s3.eu-central-1.amazonaws.com/sites/testbed/index.html
+ <br />
+ </pre>
+</details>
+
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
+
+## `--quiet`, `-q`
+
+Returns only a list of space-separated sites.
+
+```
+npx remotion lambda sites ls -q
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ pr6fwglz05 testbed
+ <br />
+ </pre>
+</details>
+
+## `--force-path-style`<AvailableFrom v="4.0.202" />
+
+Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/sites/rm.mdx b/packages/docs/docs/lambda/cli/sites/rm.mdx
new file mode 100644
index 0000000000..36ad5059a9
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/sites/rm.mdx
@@ -0,0 +1,130 @@
+---
+image: /generated/articles-docs-lambda-cli-sites-rm.png
+sidebar_label: rm
+title: 'npx remotion lambda sites rm'
+slug: /lambda/cli/sites/rm
+crumb: 'Lambda CLI Reference'
+---
+
+Removes a site (or multiple) from S3 by its ID.
+
+```bash
+npx remotion lambda sites rm abcdef
+npx remotion lambda sites rm abcdef my-project # multiple at once
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Site abcdef in bucket remotionlambda-gc1w0xbfzl (14.7 MB): Delete? (Y/n): Y
+ <br />
+ Deleted sites/abcdef/052787b08233d85edebfc4ce4610944e.mp4
+ <br />
+ Deleted sites/abcdef/258.bundle.js
+ <br />
+ Deleted sites/abcdef/15.bundle.js
+ <br />
+ Deleted sites/abcdef/249.bundle.js.map
+ <br />
+ Deleted sites/abcdef/263.bundle.js
+ <br />
+ Deleted sites/abcdef/143.bundle.js
+ <br />
+ Deleted sites/abcdef/258.bundle.js.map
+ <br />
+ Deleted sites/abcdef/15.bundle.js.map
+ <br />
+ Deleted sites/abcdef/185.bundle.js.map
+ <br />
+ Deleted sites/abcdef/249.bundle.js
+ <br />
+ Deleted sites/abcdef/143.bundle.js.map
+ <br />
+ Deleted sites/abcdef/185.bundle.js
+ <br />
+ Deleted sites/abcdef/1f2d09019ff34eed846a5151b8561d5b.mp4
+ <br />
+ Deleted sites/abcdef/263.bundle.js.map
+ <br />
+ Deleted sites/abcdef/268.bundle.js
+ <br />
+ Deleted sites/abcdef/378.bundle.js.map
+ <br />
+ Deleted sites/abcdef/268.bundle.js.map
+ <br />
+ Deleted sites/abcdef/378.bundle.js
+ <br />
+ Deleted sites/abcdef/2b91c5234e41d3c36d4bf6df37876958.webm
+ <br />
+ Deleted sites/abcdef/450.bundle.js
+ <br />
+ Deleted sites/abcdef/46.bundle.js.map
+ <br />
+ Deleted sites/abcdef/46.bundle.js
+ <br />
+ Deleted sites/abcdef/450.bundle.js.map
+ <br />
+ Deleted sites/abcdef/534.bundle.js.map
+ <br />
+ Deleted sites/abcdef/569.bundle.js
+ <br />
+ Deleted sites/abcdef/3577958454aa99ad707b596f65151746.webm
+ <br />
+ Deleted sites/abcdef/534.bundle.js
+ <br />
+ Deleted sites/abcdef/575.bundle.js.map
+ <br />
+ Deleted sites/abcdef/575.bundle.js
+ <br />
+ Deleted sites/abcdef/569.bundle.js.map
+ <br />
+ Deleted sites/abcdef/801.bundle.js
+ <br />
+ Deleted sites/abcdef/7badbf53d3130d91b90c46181a2ecdc4.webm
+ <br />
+ Deleted sites/abcdef/801.bundle.js.map
+ <br />
+ Deleted sites/abcdef/873.bundle.js
+ <br />
+ Deleted sites/abcdef/98.bundle.js.map
+ <br />
+ Deleted sites/abcdef/bff822b868a2b87b31877f3606c9cc13.mp3
+ <br />
+ Deleted sites/abcdef/873.bundle.js.map
+ <br />
+ Deleted sites/abcdef/98.bundle.js
+ <br />
+ Deleted sites/abcdef/a2f36e3a48b4989e0da1fea9959fb35f.mp3
+ <br />
+ Deleted sites/abcdef/bundle.js
+ <br />
+ Deleted sites/abcdef/bundle.js.map
+ <br />
+ Deleted sites/abcdef/a7d87d9934059032eebb9c1536378a2a.webm
+ <br />
+ Deleted sites/abcdef/index.html
+ <br />
+ Deleted site abcdef and freed up 14.7 MB.
+ <br />
+ </pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
+
+## `--yes`, `-y`
+
+Removes a site without asking for confirmation.
+
+```
+npx remotion lambda sites rm abcdef -y
+```
+
+## `--force-bucket-name`<AvailableFrom v="3.3.42" />
+
+Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
+
+## `--force-path-style`<AvailableFrom v="4.0.202" />
+
+Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/sites/rmall.mdx b/packages/docs/docs/lambda/cli/sites/rmall.mdx
new file mode 100644
index 0000000000..b739a1970b
--- /dev/null
+++ b/packages/docs/docs/lambda/cli/sites/rmall.mdx
@@ -0,0 +1,129 @@
+---
+image: /generated/articles-docs-lambda-cli-sites-rmall.png
+sidebar_label: rmall
+title: 'npx remotion lambda sites rmall'
+slug: /lambda/cli/sites/rmall
+crumb: 'Lambda CLI Reference'
+---
+
+Remove all sites in the selected AWS region.
+
+```bash
+npx remotion lambda sites rmall
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Site abcdef in bucket remotionlambda-gc1w0xbfzl (14.7 MB): Delete? (Y/n): Y
+ <br />
+ Deleted sites/abcdef/052787b08233d85edebfc4ce4610944e.mp4
+ <br />
+ Deleted sites/abcdef/258.bundle.js
+ <br />
+ Deleted sites/abcdef/15.bundle.js
+ <br />
+ Deleted sites/abcdef/249.bundle.js.map
+ <br />
+ Deleted sites/abcdef/263.bundle.js
+ <br />
+ Deleted sites/abcdef/143.bundle.js
+ <br />
+ Deleted sites/abcdef/258.bundle.js.map
+ <br />
+ Deleted sites/abcdef/15.bundle.js.map
+ <br />
+ Deleted sites/abcdef/185.bundle.js.map
+ <br />
+ Deleted sites/abcdef/249.bundle.js
+ <br />
+ Deleted sites/abcdef/143.bundle.js.map
+ <br />
+ Deleted sites/abcdef/185.bundle.js
+ <br />
+ Deleted sites/abcdef/1f2d09019ff34eed846a5151b8561d5b.mp4
+ <br />
+ Deleted sites/abcdef/263.bundle.js.map
+ <br />
+ Deleted sites/abcdef/268.bundle.js
+ <br />
+ Deleted sites/abcdef/378.bundle.js.map
+ <br />
+ Deleted sites/abcdef/268.bundle.js.map
+ <br />
+ Deleted sites/abcdef/378.bundle.js
+ <br />
+ Deleted sites/abcdef/2b91c5234e41d3c36d4bf6df37876958.webm
+ <br />
+ Deleted sites/abcdef/450.bundle.js
+ <br />
+ Deleted sites/abcdef/46.bundle.js.map
+ <br />
+ Deleted sites/abcdef/46.bundle.js
+ <br />
+ Deleted sites/abcdef/450.bundle.js.map
+ <br />
+ Deleted sites/abcdef/534.bundle.js.map
+ <br />
+ Deleted sites/abcdef/569.bundle.js
+ <br />
+ Deleted sites/abcdef/3577958454aa99ad707b596f65151746.webm
+ <br />
+ Deleted sites/abcdef/534.bundle.js
+ <br />
+ Deleted sites/abcdef/575.bundle.js.map
+ <br />
+ Deleted sites/abcdef/575.bundle.js
+ <br />
+ Deleted sites/abcdef/569.bundle.js.map
+ <br />
+ Deleted sites/abcdef/801.bundle.js
+ <br />
+ Deleted sites/abcdef/7badbf53d3130d91b90c46181a2ecdc4.webm
+ <br />
+ Deleted sites/abcdef/801.bundle.js.map
+ <br />
+ Deleted sites/abcdef/873.bundle.js
+ <br />
+ Deleted sites/abcdef/98.bundle.js.map
+ <br />
+ Deleted sites/abcdef/bff822b868a2b87b31877f3606c9cc13.mp3
+ <br />
+ Deleted sites/abcdef/873.bundle.js.map
+ <br />
+ Deleted sites/abcdef/98.bundle.js
+ <br />
+ Deleted sites/abcdef/a2f36e3a48b4989e0da1fea9959fb35f.mp3
+ <br />
+ Deleted sites/abcdef/bundle.js
+ <br />
+ Deleted sites/abcdef/bundle.js.map
+ <br />
+ Deleted sites/abcdef/a7d87d9934059032eebb9c1536378a2a.webm
+ <br />
+ Deleted sites/abcdef/index.html
+ <br />
+ Deleted site abcdef and freed up 14.7 MB.
+ <br />
+ </pre>
+</details>
+
+## `--region`
+
+The [AWS region](/docs/lambda/region-selection) to select. Both project and function should be in this region.
+
+## `--yes`, `-y`
+
+Removes all sites without asking for confirmation.
+
+```
+npx remotion lambda sites rmall -y
+```
+
+## `--force-bucket-name`<AvailableFrom v="3.3.42" />
+
+Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
+
+## `--force-path-style`<AvailableFrom v="4.0.202" />
+
+Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, you probably don't need it.
\ No newline at end of file
diff --git a/packages/docs/docs/lambda/cli/still.mdx b/packages/docs/docs/lambda/cli/still.mdx
index 20084ddfbb..64ebf9158e 100644
--- a/packages/docs/docs/lambda/cli/still.mdx
+++ b/packages/docs/docs/lambda/cli/still.mdx
@@ -15,7 +15,7 @@ The command has the following structure:
npx remotion lambda still <serve-url>? [<composition-id>] [<output-location>]
```
-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites#create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).
- The [Composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.
- The `output-location` parameter is optional. If you don't specify it, the still is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.
diff --git a/packages/docs/docs/lambda/deployfunction.mdx b/packages/docs/docs/lambda/deployfunction.mdx
index 6bd0ec218f..a088fc993c 100644
--- a/packages/docs/docs/lambda/deployfunction.mdx
+++ b/packages/docs/docs/lambda/deployfunction.mdx
@@ -90,6 +90,6 @@ An object with the following values:
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/lambda/src/api/deploy-function.ts)
-- [CLI equivalent: `npx remotion lambda functions deploy`](/docs/lambda/cli/functions#deploy)
+- [CLI equivalent: `npx remotion lambda functions deploy`](/docs/lambda/cli/functions/deploy)
- [`deleteFunction()`](/docs/lambda/deletefunction)
- [`getFunctions()`](/docs/lambda/getfunctions)
diff --git a/packages/docs/docs/lambda/deploysite.mdx b/packages/docs/docs/lambda/deploysite.mdx
index 5a4a559a39..6fb6037447 100644
--- a/packages/docs/docs/lambda/deploysite.mdx
+++ b/packages/docs/docs/lambda/deploysite.mdx
@@ -152,6 +152,6 @@ From `v3.3.7`, this function is incremental: It only compares the contents of th
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/lambda/src/api/deploy-site.ts)
-- [CLI equivalent: `npx remotion lambda sites create`](/docs/lambda/cli/sites#create)
+- [CLI equivalent: `npx remotion lambda sites create`](/docs/lambda/cli/sites/create)
- [getSites()](/docs/lambda/getsites)
- [deleteSite()](/docs/lambda/deletesite)
diff --git a/packages/docs/docs/lambda/disk-size.mdx b/packages/docs/docs/lambda/disk-size.mdx
index 56b01c0125..66ec158bbb 100644
--- a/packages/docs/docs/lambda/disk-size.mdx
+++ b/packages/docs/docs/lambda/disk-size.mdx
@@ -2,18 +2,18 @@
image: /generated/articles-docs-lambda-disk-size.png
id: disk-size
title: Disk size
-crumb: "Lambda"
+crumb: 'Lambda'
---
By default, each Lambda function comes with an ephemereal disk size of:
-| Remotion Version | Default |
-|------------------|---------------|
-| &lt;5.0.0 | 2048MB |
-| &gt;=5.0.0 | 10240MB |
+| Remotion Version | Default |
+| ---------------- | ------- |
+| &lt;5.0.0 | 2048MB |
+| &gt;=5.0.0 | 10240MB |
Increasing disk space will allow for longer videos, and speeds up renders because Chrome has access to more disk cache.
-Disk.
+Disk.
Adding more disk space will almost not affect the cost of your renders at all (less than 1% more cost).
Therefore we recommend setting the disk size to the maximum possible value: 10240MB.
@@ -22,21 +22,21 @@ Therefore we recommend setting the disk size to the maximum possible value: 1024
Note that we recommend setting the disk size to the maximum possible value: 10240MB.
-| Disk size | Approximate Maximum video length |
-| ----------------- | -------------------------------- |
-| 512 MB | 8 min - 1080p |
-| 1024 MB | 16 min - 1080p |
-| 2048 MB | 32 min - 1080p |
-| 4096 MB | 1h 4min - 1080p |
-| 8192 MB | 2h 8min - 1080p |
-| 10240 MB | 2h 40min - 1080p |
+| Disk size | Approximate Maximum video length |
+| --------- | -------------------------------- |
+| 512 MB | 8 min - 1080p |
+| 1024 MB | 16 min - 1080p |
+| 2048 MB | 32 min - 1080p |
+| 4096 MB | 1h 4min - 1080p |
+| 8192 MB | 2h 8min - 1080p |
+| 10240 MB | 2h 40min - 1080p |
> These are approximate values and will not exactly match your scenario. Video output size is dependant on the video content and audio. Measure and find the values that work best for you.
## Setting the disk size
- Use the [`diskSizeInMb` option of `deployFunction()`](/docs/lambda/deployfunction#disksizeinmb) to set the disk size when you deploy.
-- Use the [`--disk`](/docs/lambda/cli/functions) flag if you use the `remotion lambda functions deploy` command.
+- Use the [`--disk`](/docs/lambda/cli/functions/deploy#--disk) flag if you use the `remotion lambda functions deploy` command.
## Pricing
diff --git a/packages/docs/docs/lambda/multiple-buckets.mdx b/packages/docs/docs/lambda/multiple-buckets.mdx
index bd38774c69..6b92786455 100644
--- a/packages/docs/docs/lambda/multiple-buckets.mdx
+++ b/packages/docs/docs/lambda/multiple-buckets.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-lambda-multiple-buckets.png
title: Multiple buckets in Remotion Lambda
slug: /lambda/multiple-buckets
sidebar_label: Multiple buckets
-crumb: "@remotion/lambda"
+crumb: '@remotion/lambda'
---
The ideal setup is if you use **1 bucket per region and account** that you use Remotion Lambda in.
@@ -40,8 +40,8 @@ Also you must pass a `--force-bucket-name=your-bucket-name` option to the follow
- [`npx remotion lambda render`](/docs/lambda/cli/render)
- [`npx remotion lambda still`](/docs/lambda/cli/still)
- [`npx remotion lambda compositions`](/docs/lambda/cli/compositions)
-- [`npx remotion lambda sites create`](/docs/lambda/cli/sites#create)
-- [`npx remotion lambda sites rm`](/docs/lambda/cli/sites#rm)
+- [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create)
+- [`npx remotion lambda sites rm`](/docs/lambda/cli/sites/rm)
- [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites#rmall)
Also you are unable to use the following APIs:
diff --git a/packages/docs/docs/lambda/setup.mdx b/packages/docs/docs/lambda/setup.mdx
index da2651eb6b..b5f469ac91 100644
--- a/packages/docs/docs/lambda/setup.mdx
+++ b/packages/docs/docs/lambda/setup.mdx
@@ -143,7 +143,7 @@ npx remotion lambda sites create src/index.ts --site-name=my-video
A [Serve URL](/docs/terminology/serve-url) will be printed pointing to the deployed project.
-When you update your Remotion code in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites#--site-name), a unique URL will be generated on every deploy.
+When you update your Remotion code in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites/create#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites/create#--site-name), a unique URL will be generated on every deploy.
</TabItem>
<TabItem value="node">
diff --git a/packages/docs/docs/lambda/speculateFunctionName.mdx b/packages/docs/docs/lambda/speculateFunctionName.mdx
index dda321d31b..1abde965b5 100644
--- a/packages/docs/docs/lambda/speculateFunctionName.mdx
+++ b/packages/docs/docs/lambda/speculateFunctionName.mdx
@@ -8,7 +8,7 @@ crumb: 'Lambda API'
_available from v3.3.75_
-Speculate the name of the Lambda function that will be created by [`deployFunction()`](/docs/lambda/deployfunction) or its CLI equivalent, [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions). This could be useful in cases when the configuration of the Lambda function is known in advance, and the name of the function is needed.
+Speculate the name of the Lambda function that will be created by [`deployFunction()`](/docs/lambda/deployfunction) or its CLI equivalent, [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions/deploy). This could be useful in cases when the configuration of the Lambda function is known in advance, and the name of the function is needed.
If you are not sure whether a function exists, use [`getFunctionInfo()`](/docs/lambda/getfunctioninfo) and catch the error that gets thrown if it does not exist.
@@ -68,4 +68,4 @@ A string with the name of the function that will be created.
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/lambda/src/api/speculate-function-name.ts)
- [Function name convention](/docs/lambda/naming-convention)
- [`deployFunction()`](/docs/lambda/deployfunction)
-- CLI version of `deployFunction()`: [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions#deploy)
+- CLI version of `deployFunction()`: [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions/deploy)
diff --git a/packages/docs/docs/lambda/troubleshooting/debug.mdx b/packages/docs/docs/lambda/troubleshooting/debug.mdx
index e863dc2816..4c774e706f 100644
--- a/packages/docs/docs/lambda/troubleshooting/debug.mdx
+++ b/packages/docs/docs/lambda/troubleshooting/debug.mdx
@@ -47,7 +47,7 @@ You can increase the timeout by passing `timeoutInMilliseconds` to [`renderMedia
<br />
If your error message reads that the main Lambda function has timed out, it means that the render was still ongoing, but the maximum execution duration of the Lambda function has been hit. This is caused by either: <br /> <br />
-- A render that takes too long to complete within the specified duration. In that case, you should increase the function timeout by passing `--timeout` to the CLI [when deploying a function](/docs/lambda/cli/functions).
+- A render that takes too long to complete within the specified duration. In that case, you should increase the function timeout by passing `--timeout` to the CLI [when deploying a function](/docs/lambda/cli/functions/deploy).
- A render that has a bottleneck and completes slowly on Lambda. In that case, you should identify the bottleneck by measuring and optimizing the render. See [Optimizing for speed](/docs/lambda/optimizing-speed) for more tips.
- A chunk is getting stuck, making it impossible for the main function to complete the task of concatenating the chunks. You should identify the chunk that is getting stuck by looking at the logs. See below for how to do this.
@@ -111,7 +111,7 @@ After you've identified which chunks are missing, [inspect the logs](#inspecting
Note that two types of timeouts come into play in Remotion:
- The `delayRender()` timeout. This is the timeout that is defined using `--timeout` when calling [`npx remotion lambda render`](/docs/lambda/cli/render) or using `timeoutInMilliseconds` when calling [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda).
-- The Lambda function timeout. This is the timeout that is defined using `--timeout` when calling [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions) or using `timeoutInSeconds` when calling [`deployFunction()`](/docs/lambda/deployfunction).
+- The Lambda function timeout. This is the timeout that is defined using `--timeout` when calling [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions/deploy) or using `timeoutInSeconds` when calling [`deployFunction()`](/docs/lambda/deployfunction).
### Reporting an issue
diff --git a/packages/docs/docs/recorder/lambda-rendering.mdx b/packages/docs/docs/recorder/lambda-rendering.mdx
index a950a0d7b8..47372a76aa 100644
--- a/packages/docs/docs/recorder/lambda-rendering.mdx
+++ b/packages/docs/docs/recorder/lambda-rendering.mdx
@@ -27,8 +27,8 @@ bunx remotion lambda render remotion-recorder <composition-id> --delete-after="7
Explanation:
-1. [Deploy](/docs/lambda/cli/functions#deploy) a Lambda function. Setting memory to 3009MB will give you [3 vCPUs](/docs/lambda/runtime#core-count--vcpus). If the function already exists, nothing will happen, therefore it is safe to run the command every time.
-2. [Upload](/docs/lambda/cli/sites#create) the Recorder and your Recordings to S3. Give the site the name `remotion-recorder`, you may choose a different name if you like. The [`--enable-folder-expiry`](/docs/lambda/cli/sites#--enable-folder-expiry) flag will make it possible to render videos that automatically delete. If a site with this name already existed, it will update it.
+1. [Deploy](/docs/lambda/cli/functions/deploy) a Lambda function. Setting memory to 3009MB will give you [3 vCPUs](/docs/lambda/runtime#core-count--vcpus). If the function already exists, nothing will happen, therefore it is safe to run the command every time.
+2. [Upload](/docs/lambda/cli/sites/create) the Recorder and your Recordings to S3. Give the site the name `remotion-recorder`, you may choose a different name if you like. The [`--enable-folder-expiry`](/docs/lambda/cli/sites/create#--enable-folder-expiry) flag will make it possible to render videos that automatically delete. If a site with this name already existed, it will update it.
3. [Render](/docs/lambda/cli/render) the video. Pass the site name and [composition ID](/docs/terminology/composition#composition-id) to the command. The [`--delete-after`](/docs/lambda/cli/render#--delete-after) flag will delete the video after the specified time, you may remove this flag if you want to keep the video.
## Rendering for a specific platform
@@ -47,23 +47,23 @@ bunx remotion lambda render --props='{"platform": "linkedin", "layout": "square"
For rendering our videos, we create a TypeScript file and run it with `bun lambda.ts`.
```tsx title="lambda.ts"
-import { $ } from "bun";
+import {$} from 'bun';
-const siteName = "our-recorder";
-const compositionId = "installwhispercpp";
+const siteName = 'our-recorder';
+const compositionId = 'installwhispercpp';
const configs = [
{
- canvasLayout: "square",
- platform: "linkedin",
+ canvasLayout: 'square',
+ platform: 'linkedin',
},
{
- canvasLayout: "square",
- platform: "x",
+ canvasLayout: 'square',
+ platform: 'x',
},
{
- canvasLayout: "landscape",
- platform: "youtube",
+ canvasLayout: 'landscape',
+ platform: 'youtube',
},
];
diff --git a/packages/docs/docs/terminology/bundle.mdx b/packages/docs/docs/terminology/bundle.mdx
index ad8ec32571..0326ea7bfd 100644
--- a/packages/docs/docs/terminology/bundle.mdx
+++ b/packages/docs/docs/terminology/bundle.mdx
@@ -1,7 +1,7 @@
---
image: /generated/articles-docs-terminology-bundle.png
title: Remotion Bundle
-crumb: "Terminology"
+crumb: 'Terminology'
---
Once you have written your video in React, you need to bundle it using [Webpack](https://webpack.js.org/) in order to render it.
@@ -14,6 +14,6 @@ You can use the [`bundle()`](/docs/bundle) API to create a bundle programmatical
You can create a bundle on the CLI using the [`npx remotion bundle`](/docs/cli/bundle) command.
-To bundle and deploy to S3, you can use the [`npx remotion lambda sites create`](/docs/lambda/cli/sites#create) command.
+To bundle and deploy to S3, you can use the [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create) command.
If you host a bundle under a URL, it becomes a [Serve URL](/docs/terminology/serve-url), which you can specify to render videos.
diff --git a/packages/docs/docs/terminology/serve-url.mdx b/packages/docs/docs/terminology/serve-url.mdx
index 37627edd05..f705ee1afb 100644
--- a/packages/docs/docs/terminology/serve-url.mdx
+++ b/packages/docs/docs/terminology/serve-url.mdx
@@ -1,13 +1,13 @@
---
image: /generated/articles-docs-terminology-serve-url.png
title: Serve URL
-crumb: "Terminology"
+crumb: 'Terminology'
---
A Serve URL is a URL under which [a Remotion Bundle](/docs/terminology/bundle) is hosted.
When rendering your video, Remotion will open a headless browser and visit that URL in order to make screenshots of it.
-The most common use case for a Serve URL is when rendering a video on Lambda, you need to deploy your [bundle](/docs/terminology/bundle) to Amazon S3, which will [make it a Serve URL](/docs/lambda/cli/sites#create).
+The most common use case for a Serve URL is when rendering a video on Lambda, you need to deploy your [bundle](/docs/terminology/bundle) to Amazon S3, which will [make it a Serve URL](/docs/lambda/cli/sites/create).
If you have a Serve URL, you can also render a video locally by passing a serve URL instead of an [entry point](/docs/terminology/entry-point).
diff --git a/packages/docs/docs/troubleshooting/bundling-bundle.mdx b/packages/docs/docs/troubleshooting/bundling-bundle.mdx
index f72e48ebf6..01f504925f 100644
--- a/packages/docs/docs/troubleshooting/bundling-bundle.mdx
+++ b/packages/docs/docs/troubleshooting/bundling-bundle.mdx
@@ -2,7 +2,7 @@
image: /generated/articles-docs-troubleshooting-bundling-bundle.png
sidebar_label: Calling bundle() in bundled code
title: Calling bundle() in bundled code
-crumb: "Troubleshooting"
+crumb: 'Troubleshooting'
---
If you receive the following error:
@@ -42,7 +42,7 @@ See how to parametrize the [content with input props](/docs/passing-props) as we
**If you are using a long-running server:** we recommend to call `bundle()` once in a Node.js context and then reusing it for the lifetime of the server. See: [Rendering in Node.js](/docs/ssr-node)
-**If you are rendering on Lambda**: Create a bundle and deploy it once either via [`npx remotion sites create`](/docs/lambda/cli/sites#create) or using [`deploySite()`](/docs/lambda/deploysite) in a non-bundled Node.js script and then refer to the bundle via the URL that you get back.
+**If you are rendering on Lambda**: Create a bundle and deploy it once either via [`npx remotion sites create`](/docs/lambda/cli/sites/create) or using [`deploySite()`](/docs/lambda/deploysite) in a non-bundled Node.js script and then refer to the bundle via the URL that you get back.
In both cases, do all parameterization of the video using [input props](/docs/parameterized-rendering).
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index b0fd35f05d..dbdc2e3b24 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -23,8 +23,34 @@ module.exports = {
id: 'lambda/cli',
},
items: [
- 'lambda/cli/sites',
- 'lambda/cli/functions',
+ {
+ type: 'category',
+ label: 'sites',
+ link: {
+ type: 'doc',
+ id: 'lambda/cli/sites',
+ },
+ items: [
+ 'lambda/cli/sites/create',
+ 'lambda/cli/sites/ls',
+ 'lambda/cli/sites/rm',
+ 'lambda/cli/sites/rmall',
+ ],
+ },
+ {
+ type: 'category',
+ label: 'functions',
+ link: {
+ type: 'doc',
+ id: 'lambda/cli/functions',
+ },
+ items: [
+ 'lambda/cli/functions/deploy',
+ 'lambda/cli/functions/ls',
+ 'lambda/cli/functions/rm',
+ 'lambda/cli/functions/rmall',
+ ],
+ },
'lambda/cli/render',
'lambda/cli/still',
'lambda/cli/policies',
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 50280970cb..828906b2d8 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1656,7 +1656,7 @@ export const articles = [
slug: 'lambda/cli/compositions',
},
{
- id: 'functions',
+ id: 'lambda/cli/functions',
title: 'npx remotion lambda functions',
relativePath: 'docs/lambda/cli/functions.mdx',
compId: 'articles-docs-lambda-cli-functions',
@@ -1664,6 +1664,42 @@ export const articles = [
noAi: false,
slug: 'lambda/cli/functions',
},
+ {
+ id: 'lambda/cli/functions/deploy',
+ title: 'npx remotion lambda functions deploy',
+ relativePath: 'docs/lambda/cli/functions/deploy.mdx',
+ compId: 'articles-docs-lambda-cli-functions-deploy',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/functions/deploy',
+ },
+ {
+ id: 'lambda/cli/functions/ls',
+ title: 'npx remotion lambda functions ls',
+ relativePath: 'docs/lambda/cli/functions/ls.mdx',
+ compId: 'articles-docs-lambda-cli-functions-ls',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/functions/ls',
+ },
+ {
+ id: 'lambda/cli/functions/rm',
+ title: 'npx remotion lambda functions rm',
+ relativePath: 'docs/lambda/cli/functions/rm.mdx',
+ compId: 'articles-docs-lambda-cli-functions-rm',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/functions/rm',
+ },
+ {
+ id: 'lambda/cli/functions/rmall',
+ title: 'npx remotion lambda functions rmall',
+ relativePath: 'docs/lambda/cli/functions/rmall.mdx',
+ compId: 'articles-docs-lambda-cli-functions-rmall',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/functions/rmall',
+ },
{
id: 'policies',
title: 'npx remotion lambda policies',
@@ -1701,7 +1737,7 @@ export const articles = [
slug: 'lambda/cli/render',
},
{
- id: 'sites',
+ id: 'lambda/cli/sites',
title: 'npx remotion lambda sites',
relativePath: 'docs/lambda/cli/sites.mdx',
compId: 'articles-docs-lambda-cli-sites',
@@ -1709,6 +1745,42 @@ export const articles = [
noAi: false,
slug: 'lambda/cli/sites',
},
+ {
+ id: 'lambda/cli/sites/create',
+ title: 'npx remotion lambda sites create',
+ relativePath: 'docs/lambda/cli/sites/create.mdx',
+ compId: 'articles-docs-lambda-cli-sites-create',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/sites/create',
+ },
+ {
+ id: 'lambda/cli/sites/ls',
+ title: 'npx remotion lambda sites ls',
+ relativePath: 'docs/lambda/cli/sites/ls.mdx',
+ compId: 'articles-docs-lambda-cli-sites-ls',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/sites/ls',
+ },
+ {
+ id: 'lambda/cli/sites/rm',
+ title: 'npx remotion lambda sites rm',
+ relativePath: 'docs/lambda/cli/sites/rm.mdx',
+ compId: 'articles-docs-lambda-cli-sites-rm',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/sites/rm',
+ },
+ {
+ id: 'lambda/cli/sites/rmall',
+ title: 'npx remotion lambda sites rmall',
+ relativePath: 'docs/lambda/cli/sites/rmall.mdx',
+ compId: 'articles-docs-lambda-cli-sites-rmall',
+ crumb: 'Lambda CLI Reference',
+ noAi: false,
+ slug: 'lambda/cli/sites/rmall',
+ },
{
id: 'still',
title: 'npx remotion lambda still',
diff --git a/packages/docs/src/helpers/system-prompt.ts b/packages/docs/src/helpers/system-prompt.ts
index f068664f8d..9359caf454 100644
--- a/packages/docs/src/helpers/system-prompt.ts
+++ b/packages/docs/src/helpers/system-prompt.ts
@@ -359,8 +359,8 @@ Rendering requires a Lambda function and a site deployed on S3.
If the user is using the CLI:
-- A Lambda function can be deployed using \`npx remotion lambda functions deploy\`: https://www.remotion.dev/docs/lambda/cli/functions#deploy
-- A site can be deployed using \`npx remotion lambda sites create\`: https://www.remotion.dev/docs/lambda/cli/sites. The first argument must refer to the entry point.
+- A Lambda function can be deployed using \`npx remotion lambda functions deploy\`: https://www.remotion.dev/docs/lambda/cli/functions/deploy
+- A site can be deployed using \`npx remotion lambda sites create\`: https://www.remotion.dev/docs/lambda/cli/sites/create. The first argument must refer to the entry point.
- A video can be rendered using \`npx remotion lambda render [comp-id]\`. The composition ID must be referenced.
If the user is using the Node.js APIs:
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-functions-deploy.png b/packages/docs/static/generated/articles-docs-lambda-cli-functions-deploy.png
new file mode 100644
index 0000000000..1c0745b27c
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-functions-deploy.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-functions-ls.png b/packages/docs/static/generated/articles-docs-lambda-cli-functions-ls.png
new file mode 100644
index 0000000000..6806c27634
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-functions-ls.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-functions-rm.png b/packages/docs/static/generated/articles-docs-lambda-cli-functions-rm.png
new file mode 100644
index 0000000000..aa74d7b76a
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-functions-rm.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-functions-rmall.png b/packages/docs/static/generated/articles-docs-lambda-cli-functions-rmall.png
new file mode 100644
index 0000000000..315642effa
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-functions-rmall.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-sites-create.png b/packages/docs/static/generated/articles-docs-lambda-cli-sites-create.png
new file mode 100644
index 0000000000..ab65a63c1f
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-sites-create.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-sites-ls.png b/packages/docs/static/generated/articles-docs-lambda-cli-sites-ls.png
new file mode 100644
index 0000000000..5f5c3f2b96
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-sites-ls.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-sites-rm.png b/packages/docs/static/generated/articles-docs-lambda-cli-sites-rm.png
new file mode 100644
index 0000000000..30892cf464
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-sites-rm.png differ
diff --git a/packages/docs/static/generated/articles-docs-lambda-cli-sites-rmall.png b/packages/docs/static/generated/articles-docs-lambda-cli-sites-rmall.png
new file mode 100644
index 0000000000..04829c7ae4
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-cli-sites-rmall.png differ
diff --git a/packages/docs/static/llms.txt b/packages/docs/static/llms.txt
index dfc8dd7b86..0fc54a373a 100644
--- a/packages/docs/static/llms.txt
+++ b/packages/docs/static/llms.txt
@@ -356,8 +356,8 @@ Rendering requires a Lambda function and a site deployed on S3.
If the user is using the CLI:
-- A Lambda function can be deployed using `npx remotion lambda functions deploy`: https://www.remotion.dev/docs/lambda/cli/functions#deploy
-- A site can be deployed using `npx remotion lambda sites create`: https://www.remotion.dev/docs/lambda/cli/sites. The first argument must refer to the entry point.
+- A Lambda function can be deployed using `npx remotion lambda functions deploy`: https://www.remotion.dev/docs/lambda/cli/functions/deploy
+- A site can be deployed using `npx remotion lambda sites create`: https://www.remotion.dev/docs/lambda/cli/sites/create. The first argument must refer to the entry point.
- A video can be rendered using `npx remotion lambda render [comp-id]`. The composition ID must be referenced.
If the user is using the Node.js APIs:
diff --git a/packages/serverless-client/src/make-timeout-message.ts b/packages/serverless-client/src/make-timeout-message.ts
index e0920602b9..85b52b3bb6 100644
--- a/packages/serverless-client/src/make-timeout-message.ts
+++ b/packages/serverless-client/src/make-timeout-message.ts
@@ -103,7 +103,7 @@ export const makeTimeoutMessage = <Provider extends CloudProvider>({
'',
`Consider increasing the timeout of your function.`,
`â–¸ You can use the "--timeout" parameter when deploying a function via CLI, or the "timeoutInSeconds" parameter when using the deployFunction() API.`,
- `${DOCS_URL}/docs/lambda/cli/functions#deploy`,
+ `${DOCS_URL}/docs/lambda/cli/functions/deploy`,
'',
'â–¸ Visit the logs for the main function:',
cloudWatchLaunchUrl,
diff --git a/packages/template-tiktok/README.md b/packages/template-tiktok/README.md
index b35237a10e..6d8a2de3fe 100644
--- a/packages/template-tiktok/README.md
+++ b/packages/template-tiktok/README.md
@@ -66,11 +66,6 @@ Captioning will download Whisper.cpp and the 1.5GB big `medium.en` model. To con
To support non-English languages, you need to change the `WHISPER_MODEL` variable in `whisper-config.mjs` to a model that does not have a `.en` sufix.
-## Rendering on Lambda
-
-If you plan on deploying this template to Lambda, make sure to enable the [`--enable-v5-runtime`](https://www.remotion.dev/docs/lambda/cli/functions#--enable-v5-runtime) flag.
-This will enable a Chrome version which supports the `paint-order` CSS property that is required for this template to render properly.
-
## Docs
Get started with Remotion by reading the [fundamentals page](https://www.remotion.dev/docs/the-fundamentals).