Back to Remotion

npx remotion cloudrun sites create

packages/docs/docs/cloudrun/cli/sites/create.mdx

4.0.4651.9 KB
Original Source
<ExperimentalBadge> <p> Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.</a> </p> </ExperimentalBadge>
bash
npx remotion cloudrun 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 a Cloud Storage bucket.

The result will be a URL such as https://storage.googleapis.com/remotioncloudrun-12345/sites/mySite123/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 Cloud Run using:

If you are rendering on Cloud Run, you can also pass the site Name (in this case mySite123) as an abbreviation.

--region

The GCP region to select. The service accessing the site should also be in this same region to minimise latency.

--site-name

Uploads the project to a specific directory and returns a deterministic URL. If a site already existed under this name, in the same region, it will be overwritten. Can only contain the following characters: 0-9, a-z, A-Z, -, !, _, ., *, ', (, )

npx remotion cloudrun sites create src/index.ts --site-name=another-site

--disable-git-source<AvailableFrom v="4.0.182" />

<Options id="disable-git-source" />

See also