packages/docs/docs/lambda/cli/sites/create.mdx
npx remotion lambda sites create <entry-point>?
You may pass an entry point as the first argument, otherwise the entry point will be determined.
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 to overwrite an existing site.
:::
You can use this "Serve URL" to render a video on Remotion Lambda using:
npx remotion lambda render and npx remotion lambda still commandsrenderMediaOnLambda() and renderStillOnLambda() functions.renderMedia() and renderStill() functions.npx remotion render and npx remotion still commandsIf you are rendering on Lambda, you can also pass the site Name (in this case abcdef) as an abbreviation.
(2/3) [====================] Created bucket 457ms
(3/3) [====================] Uploaded to S3 25118ms
Deployed to S3!
Serve URL: https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html
Site Name: abcdef
--regionThe AWS region to select. Both project and function should be in this region.
--site-nameUploads 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, 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" />--enable-folder-expiry<AvailableFrom v="4.0.32" />--throw-if-site-exists<AvailableFrom v="4.0.141"/>--disable-git-source<AvailableFrom v="4.0.182" />--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.