Skip to content

🎥 Make videos programmatically with React

rmall command

Jonny Burgerab69d0f3cf37
diff --git a/packages/docs/docs/lambda/cli/functions.md b/packages/docs/docs/lambda/cli/functions.md
index e41a6af1fe..02967c0187 100644
--- a/packages/docs/docs/lambda/cli/functions.md
+++ b/packages/docs/docs/lambda/cli/functions.md
@@ -10,6 +10,11 @@ import {DefaultTimeout} from '../../../components/lambda/default-timeout';
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)
+
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
diff --git a/packages/docs/docs/lambda/cli/policies.md b/packages/docs/docs/lambda/cli/policies.md
index 900fd77742..3c986fae6a 100644
--- a/packages/docs/docs/lambda/cli/policies.md
+++ b/packages/docs/docs/lambda/cli/policies.md
@@ -10,6 +10,10 @@ import {UserPolicy} from '../../../components/lambda/user-permissions.tsx';
Prints the necessary permissions to be inserted into the AWS console during [setup](/docs/lambda/setup).
+- [`role`](#role)
+- [`user`](#user)
+- [`validate`](#validate)
+
:::tip
On macOS, add `| pbcopy` to the end of the command to copy the output.
:::
diff --git a/packages/docs/docs/lambda/cli/sites.md b/packages/docs/docs/lambda/cli/sites.md
index d5487824ae..b41be913b7 100644
--- a/packages/docs/docs/lambda/cli/sites.md
+++ b/packages/docs/docs/lambda/cli/sites.md
@@ -10,6 +10,7 @@ The `npx remotion lambda sites` command allows to create, view and delete Remoti
- [`create`](#create)
- [`ls`](#ls)
- [`rm`](#rm)
+- [`rmall`](#rmall)
## create
@@ -51,7 +52,7 @@ The [AWS region](/docs/lambda/region-selection) to select. Both project and func
### `--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.
+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.tsx --site-name=my-project
diff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.md
index 816f395324..6c703caf63 100644
--- a/packages/docs/docs/lambda/deploysite.md
+++ b/packages/docs/docs/lambda/deploysite.md
@@ -57,7 +57,7 @@ The bucket to where the website will be deployed. The bucket must have been crea
_optional_
-Specify the subfolder in your S3 bucket that you want the site to deploy to. If you omit this property, a new subfolder with a random name will be created. If a site already exists with the name you passed, it will be overwritten.
+Specify the subfolder in your S3 bucket that you want the site to deploy to. If you omit this property, a new subfolder with a random name will be created. If a site already exists with the name you passed, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
### `region`
diff --git a/packages/docs/docs/lambda/faq.md b/packages/docs/docs/lambda/faq.md
index 56ac15abcd..7d24f7f373 100644
--- a/packages/docs/docs/lambda/faq.md
+++ b/packages/docs/docs/lambda/faq.md
@@ -43,7 +43,7 @@ Remotion will look for a version of the lambda function that matches the Node.JS
If you don't rely on the old function anymore, you can first delete all existing functions:
```bash
-npx remotion lambda functions rm $(npx remotion lambda functions ls -q) -y
+npx remotion lambda functions rmall
```
You can deploy a new function using:
diff --git a/packages/docs/docs/lambda/uninstall.md b/packages/docs/docs/lambda/uninstall.md
index 57ff8029df..bfef5b80a4 100644
--- a/packages/docs/docs/lambda/uninstall.md
+++ b/packages/docs/docs/lambda/uninstall.md
@@ -17,13 +17,13 @@ This will remove all videos already rendered, and break your programs that are u
You can delete all functions using the following command. The `yes` flag is already included, if you run this, it will delete all functions without confirmation.
```
-npx remotion lambda functions rm $(npx remotion lambda functions ls -q) -y
+npx remotion lambda functions rmall -y
```
## Delete projects
```
-npx remotion lambda sites rm $(npx remotion lambda sites ls -q) -y
+npx remotion lambda sites rmall -y
```
## Delete renders and artifacts
diff --git a/packages/docs/docs/lambda/upgrading.md b/packages/docs/docs/lambda/upgrading.md
index 27bdede5bd..dbd49c7561 100644
--- a/packages/docs/docs/lambda/upgrading.md
+++ b/packages/docs/docs/lambda/upgrading.md
@@ -18,7 +18,7 @@ You only should do this if the function is not being used anymore. If you are st
:::
```
-npx remotion lambda functions rm $(npx remotion lambda functions ls -q) -y
+npx remotion lambda functions rmall -y
```
- Deploy the newest version of the Remotion Lambda function:
diff --git a/packages/example/testlambda.sh b/packages/example/testlambda.sh
index 322fa2fe61..3d1202e965 100644
--- a/packages/example/testlambda.sh
+++ b/packages/example/testlambda.sh
@@ -4,7 +4,7 @@ npm run buildlambda
cd ..
cd example
npx remotion lambda policies validate
-npx remotion lambda functions rm $(npx remotion lambda functions ls -q) -f
+npx remotion lambda functions rmall -f
npx remotion lambda functions deploy --memory=3000
npx remotion lambda sites create src/index.tsx --site-name=testbed
npx remotion lambda render https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/testbed/index.html --frames=10-20 react-svg --log=verbose