Skip to content

πŸŽ₯ Make videos programmatically with React

`docs`: Link all CLI commands and parameters in upgrading guide

JonnyBurgerf544e30ba4b3
diff --git a/packages/docs/docs/lambda/upgrading.mdx b/packages/docs/docs/lambda/upgrading.mdx
index 0bd94e7065..d9017e5715 100644
--- a/packages/docs/docs/lambda/upgrading.mdx
+++ b/packages/docs/docs/lambda/upgrading.mdx
@@ -15,6 +15,8 @@ Upgrade all packages to the newest version (`@remotion/lambda`, but also `remoti
npx remotion upgrade
```
+See [`npx remotion upgrade`](/docs/cli/upgrade).
+
<Prerelease packageName="@remotion/lambda" />
## 2. Deploy a new Lambda function
@@ -23,6 +25,8 @@ npx remotion upgrade
npx remotion lambda functions deploy
```
+See [`npx remotion lambda functions deploy`](/docs/lambda/cli/functions/deploy).
+
This deploys a new function with the latest version. You can keep old functions deployed if they are still in use in production.
## 3. Update the site
@@ -31,9 +35,13 @@ This deploys a new function with the latest version. You can keep old functions
npx remotion lambda sites create src/index.ts --site-name=my-name
```
-Pass `--site-name` with the name of an existing site to update it. The URL will stay the same but older functions may not be able to render the updated site.
+See [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create).
-If you don't pass `--site-name`, a new site URL will be generated. You'll need to update the [`serveUrl`](/docs/lambda/rendermediaonlambda#serveurl) parameter in your [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) calls.
+Pass [`--site-name`](/docs/lambda/cli/sites/create#--site-name) with the name of an existing site to update it.
+The URL will stay the same but older functions may not be able to render the updated site.
+
+If you don't pass [`--site-name`](/docs/lambda/cli/sites/create#--site-name), a new site URL will be generated.
+You'll need to update the [`serveUrl`](/docs/lambda/rendermediaonlambda#serveurl) parameter in your [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) calls.
It is advised that the function, the site and the `@remotion/lambda` package calling the render are all on the same version.
If the site is on a different version than the function, you may get a version mismatch warning – or if there was a protocol change, renders may fail.
@@ -48,6 +56,8 @@ Only do this once the old function is no longer being used in production.
npx remotion lambda functions rmall -y
```
+See [`npx remotion lambda functions rmall`](/docs/lambda/cli/functions/rmall).
+
## Zero-downtime upgrades
If you already shipped Remotion Lambda to production, you can upgrade without incurring any downtime:
@@ -59,8 +69,8 @@ If you already shipped Remotion Lambda to production, you can upgrade without in
### Useful commands
-- List deployed functions and their versions: `npx remotion lambda functions ls`
+- List deployed functions and their versions: [`npx remotion lambda functions ls`](/docs/lambda/cli/functions/ls)
- Find functions matching your installed version: use the [`compatibleOnly`](/docs/lambda/getfunctions#compatibleonly) parameter.
-- List deployed sites: `npx remotion lambda sites ls`
+- List deployed sites: [`npx remotion lambda sites ls`](/docs/lambda/cli/sites/ls)
See also: [Separating production and testing environments](/docs/lambda/separate-environments)