Skip to content

🎥 Make videos programmatically with React

improve documentation

Jonny Burgerf38982abb489
diff --git a/packages/docs/docs/lambda-cli.md b/packages/docs/docs/lambda-cli.md
index 940211652b..81d56fdb62 100644
--- a/packages/docs/docs/lambda-cli.md
+++ b/packages/docs/docs/lambda-cli.md
@@ -6,9 +6,7 @@ title: "@remotion/lambda - CLI"
You can get a list of all commands using `npx remotion-lambda --help`.
-## Commands
-
-### upload
+## upload
Uploads a Remotion project to an S3 bucket. You will get a URL which you can pass to the `render` command to render the video.
@@ -16,15 +14,35 @@ Uploads a Remotion project to an S3 bucket. You will get a URL which you can pas
npx remotion-lambda upload src/index.ts
```
-### policies
+## policies
-Prints the recommended policies to be added to the AWS user and the AWS role.
+Deals with AWS policy documents, generating and validating policies that need to be added to the account.
-```console
-npx remotion-lambda policies
+### user
+
+Print the suggested policy to be applied to the user that is attached to the access token.
+
+```
+npx remotion-lambda policies user
+```
+
+### role
+
+Print the suggested policy to be applied to the role that is attached to the lambda function.
+
+```
+npx remotion-lambda policies role
```
-### cleanup
+### validate
+
+Validate the current policies setup is correct by running tests using the AWS policy simulator.
+
+```
+npx remotion-lambda policies validate
+```
+
+## cleanup
This command helps remove Remotion-related resources from your AWS account.
@@ -32,7 +50,7 @@ This command helps remove Remotion-related resources from your AWS account.
npx remotion-lambda cleanup
```
-### render
+## render
Renders a video using Remotion Lambda. You need to pass two arguments:
@@ -42,3 +60,11 @@ Renders a video using Remotion Lambda. You need to pass two arguments:
```
npx remotion-lambda render https://remotionlambda-abcdefgh.s3.eu-central-1.amazonaws.com/sites/abcdefgh HelloWorld
```
+
+## deploy
+
+Deploys a Remotion render lambda function to your account. You only need 1 function to render videos.
+
+```
+npx remotion-lambda deploy
+```