npx remotion lambda compositions
Available from v3.3.2.
Print list of composition IDs from a serve URL, fetched from inside a Lambda function.
bashnpx remotion lambda compositions <serve-url>
bashnpx remotion lambda compositions <serve-url>
- The serve URL is obtained by deploying a project to Remotion using the
sites createcommand or callingdeploySite().
Note that you can also get the compositions of a site that is hosted on Lambda using npx remotion compositions. Vice versa, you can also get the compositions from a serve URL that is not hosted on AWS Lambda using npx remotion lambda compositions.
You should use npx remotion lambda compositions if you cannot use npx remotion compositions because the machine cannot run Chrome.
Example commands
Rendering a still:
npx remotion lambda compositions https://remotionlambda-abcdef.s3.eu-central-1.amazonaws.com/sites/testbed/index.html
npx remotion lambda compositions https://remotionlambda-abcdef.s3.eu-central-1.amazonaws.com/sites/testbed/index.html
Flags
--props
React Props that can be retrieved using getInputProps(). Must be a serialized JSON string (--props='{"hello": "world"}') or a path to a JSON file (./path/to/props.json).
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.
--log
Set the log level. Increase or decrease the amount of output. Acceptable values: error, warn, info (default), verbose
If you don't feel like passing command line flags every time, consider creating a remotion.config.ts config file.
--timeout
Define how long it may take to resolve all delayRender() calls before the composition fetching times out in milliseconds. Default: 30000.
Not to be confused with the --timeout flag when deploying a Lambda function.
--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.
--quiet, --q
Only prints the composition IDs, separated by a space.
--force-bucket-name v3.3.42
Specify a specific bucket name to be used. This is not recommended, instead let Remotion discover the right bucket automatically.
--user-agent v3.3.83
Lets you set a custom user agent that the headless Chrome browser assumes.