Skip to content

🎥 Make videos programmatically with React

split up sites/

Jonny Burgerfad38cb2ab45
diff --git a/packages/docs/docs/cloudrun/cli/render.mdx b/packages/docs/docs/cloudrun/cli/render.mdx
index ae4d89eedb..e62bee0772 100644
--- a/packages/docs/docs/cloudrun/cli/render.mdx
+++ b/packages/docs/docs/cloudrun/cli/render.mdx
@@ -21,7 +21,7 @@ The structure of a command is as follows:
npx remotion cloudrun render <serve-url> [<composition-id>] [<output-location>]
```
-- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites#create) command or calling [`deployService()`](/docs/cloudrun/deployservice).
+- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites/create) command or calling [`deployService()`](/docs/cloudrun/deployservice).
- The [composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.
- The `output-location` parameter is optional. If you don't specify it, the video is stored in your Cloud Storage bucket. If you specify a location, it gets downloaded to your device in an additional step.
diff --git a/packages/docs/docs/cloudrun/cli/services/deploy.mdx b/packages/docs/docs/cloudrun/cli/services/deploy.mdx
index 230e360dac..9640aecf5c 100644
--- a/packages/docs/docs/cloudrun/cli/services/deploy.mdx
+++ b/packages/docs/docs/cloudrun/cli/services/deploy.mdx
@@ -1,5 +1,5 @@
---
-image: /generated/articles-docs-cloudrun-cli-services.png
+image: /generated/articles-docs-cloudrun-cli-services-deploy.png
sidebar_label: deploy
title: 'npx remotion cloudrun services deploy'
slug: /cloudrun/cli/services/deploy
diff --git a/packages/docs/docs/cloudrun/cli/services/ls.mdx b/packages/docs/docs/cloudrun/cli/services/ls.mdx
index 05e30b4ba5..2150ee16fc 100644
--- a/packages/docs/docs/cloudrun/cli/services/ls.mdx
+++ b/packages/docs/docs/cloudrun/cli/services/ls.mdx
@@ -1,5 +1,5 @@
---
-image: /generated/articles-docs-cloudrun-cli-services.png
+image: /generated/articles-docs-cloudrun-cli-services-ls.png
sidebar_label: ls
title: 'npx remotion cloudrun services ls'
slug: /cloudrun/cli/services/ls
diff --git a/packages/docs/docs/cloudrun/cli/services/rm.mdx b/packages/docs/docs/cloudrun/cli/services/rm.mdx
index f5aab7c2bb..686579022f 100644
--- a/packages/docs/docs/cloudrun/cli/services/rm.mdx
+++ b/packages/docs/docs/cloudrun/cli/services/rm.mdx
@@ -1,5 +1,5 @@
---
-image: /generated/articles-docs-cloudrun-cli-services.png
+image: /generated/articles-docs-cloudrun-cli-services-rm.png
sidebar_label: rm
title: 'npx remotion cloudrun services rm'
slug: /cloudrun/cli/services/rm
diff --git a/packages/docs/docs/cloudrun/cli/services/rmall.mdx b/packages/docs/docs/cloudrun/cli/services/rmall.mdx
index ef250f881a..b1f8b14c61 100644
--- a/packages/docs/docs/cloudrun/cli/services/rmall.mdx
+++ b/packages/docs/docs/cloudrun/cli/services/rmall.mdx
@@ -1,5 +1,5 @@
---
-image: /generated/articles-docs-cloudrun-cli-services.png
+image: /generated/articles-docs-cloudrun-cli-services-rmall.png
sidebar_label: rmall
title: 'npx remotion cloudrun services rmall'
slug: /cloudrun/cli/services/rmall
diff --git a/packages/docs/docs/cloudrun/cli/sites.mdx b/packages/docs/docs/cloudrun/cli/sites.mdx
index 239dc87027..ecdcf8dc15 100644
--- a/packages/docs/docs/cloudrun/cli/sites.mdx
+++ b/packages/docs/docs/cloudrun/cli/sites.mdx
@@ -9,305 +9,19 @@ crumb: 'Cloud Run CLI Reference'
<ExperimentalBadge>
<p>
- Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the{' '}<a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
</p>
</ExperimentalBadge>
The `npx remotion cloudrun sites` command allows to create, view and delete Remotion projects in your Cloud Storage bucket.
-- [`create`](#create)
-- [`ls`](#ls)
-- [`rm`](#rm)
-- [`rmall`](#rmall)
+## Subcommands
-## create
+- [`create`](/docs/cloudrun/cli/sites/create) - Bundle and upload a Remotion video to a Cloud Storage bucket
+- [`ls`](/docs/cloudrun/cli/sites/ls) - Get a list of sites in your GCP project
+- [`rm`](/docs/cloudrun/cli/sites/rm) - Removes a site (or multiple) from Cloud Storage
+- [`rmall`](/docs/cloudrun/cli/sites/rmall) - Remove all sites in the selected GCP project
-```bash
-npx remotion cloudrun sites create <entry-point>?
-```
+## See also
-You may pass an [entry point](/docs/terminology/entry-point) as the first argument, otherwise the entry point will be [determined](/docs/terminology/entry-point#which-entry-point-is-being-used).
-
-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`](#--site-name) to overwrite an existing site.
-:::
-
-You can use this "Serve URL" to render a video on Remotion Cloud Run using:
-
-- The [`npx remotion cloudrun render`](/docs/cloudrun/cli/render) command.
-- Locally using the [`renderMedia()`](/docs/renderer/render-media) and [`renderStill()`](/docs/renderer/render-still) functions.
-- Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands
-
-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](/docs/cloudrun/region-selection) 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" />
-
-## ls
-
-```
-npx remotion cloudrun sites ls
-```
-
-Get a list of sites. The URL that is printed can be passed to the `render` command to render a video.
-
-<details>
- <summary>Example output</summary>
- <pre>
- 2 sites in us-east1, in the remotion-example project.
- <br />
- <br />
- Site: another-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
- <br />
- <br />
- Site: test-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url:
- https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
- <br />
- </pre>
-</details>
-
-### `--region`
-
-The [GCP region](/docs/cloudrun/region-selection) to list sites from.
-
-### `--all-regions`,
-
-Ignores region, returning sites across all regions for the project.
-
-```
-npx remotion cloudrun sites ls --all-regions
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- 3 sites in all regions, in the remotion-example project.
- <br />
- <br />
- Site: another-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
- <br />
- <br />
- Site: test-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url:
- https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
- <br />
- <br />
- Site: central-site
- <br />
- Bucket: remotioncloudrun-abcdefgh
- <br />
- Region: us-central1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
- </pre>
-</details>
-
-### `--quiet`, `-q`
-
-Returns only a list of space-separated sites.
-
-```
-npx remotion cloudrun sites ls -q
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- another-site test-site central-site
- <br />
- </pre>
-</details>
-
-## rm
-
-Removes a site (or multiple) from Cloud Storage by it's ID.
-
-```bash
-npx remotion cloudrun sites rm central-site
-npx remotion cloudrun sites rm central-site another-site # multiple at once
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- Site: central-site
- <br />
- Bucket: remotioncloudrun-abcdefgh
- <br />
- Region: us-central1
- <br />
- Serve Url:
- https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
- <br />
- <br />
- Delete? (Y/n) Y<br />
- Deleted site central-site from bucket remotioncloudrun-abcdefgh.
- <br />
- </pre>
-</details>
-
-### `--region`
-
-The [GCP region](/docs/cloudrun/region-selection) to remove sites from.
-
-:::note
-The `rm` command does not support the --all-regions flag, as it is possible to have the same site name in multiple regions. This makes it difficult to remove multiple site-names from multiple regions.
-:::
-
-### `--yes`, `-y`
-
-Removes a site (or multiple) without asking for confirmation.
-
-```
-npx remotion cloudrun sites rm central-site -y
-```
-
-## rmall
-
-Remove all sites in the selected GCP project.
-
-```bash
-npx remotion cloudrun sites rmall
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- Retrieving sites in us-east1.
- <br />
- <br />
- Site: another-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
- <br />
- <br />
- Delete? (Y/n) n<br />
- Skipping site - another-site.
- <br />
- <br />
- <br />
- Site: test-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
- <br />
- <br />
- Delete? (Y/n) n<br />
- Skipping site - test-site.
- </pre>
-</details>
-
-### `--region`
-
-The [GCP region](/docs/cloudrun/region-selection) to remove all sites from.
-
-### `--all-regions`,
-
-Ignores region, removing sites across all regions for the project.
-
-```
-npx remotion cloudrun sites rmall --all-regions
-```
-
-<details>
- <summary>Example output</summary>
- <pre>
- Retrieving sites in all regions.
- <br />
- <br />
- Site: another-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
- <br />
- <br />
- Delete? (Y/n) n<br />
- Skipping site - another-site.
- <br />
- <br />
- <br />
- Site: test-site
- <br />
- Bucket: remotioncloudrun-12345
- <br />
- Region: us-east1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
- <br />
- <br />
- Delete? (Y/n) n<br />
- Skipping site - test-site.
- <br />
- <br />
- <br />
- Site: central-site
- <br />
- Bucket: remotioncloudrun-abcdefgh
- <br />
- Region: us-central1
- <br />
- Serve Url: https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
- <br />
- <br />
- Delete? (Y/n) n<br />
- Skipping site - central-site.
- </pre>
-</details>
-
-### `--yes`, `-y`
-
-Removes all sites without asking for confirmation.
-
-```
-npx remotion cloudrun sites rmall -y
-```
+- [Setup guide](/docs/cloudrun/setup)
\ No newline at end of file
diff --git a/packages/docs/docs/cloudrun/cli/sites/create.mdx b/packages/docs/docs/cloudrun/cli/sites/create.mdx
new file mode 100644
index 0000000000..869b7dedfc
--- /dev/null
+++ b/packages/docs/docs/cloudrun/cli/sites/create.mdx
@@ -0,0 +1,56 @@
+---
+image: /generated/articles-docs-cloudrun-cli-sites-create.png
+sidebar_label: create
+title: 'npx remotion cloudrun sites create'
+slug: /cloudrun/cli/sites/create
+crumb: 'Cloud Run CLI Reference'
+---
+
+<ExperimentalBadge>
+ <p>
+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
+ </p>
+</ExperimentalBadge>
+
+```bash
+npx remotion cloudrun sites create <entry-point>?
+```
+
+You may pass an [entry point](/docs/terminology/entry-point) as the first argument, otherwise the entry point will be [determined](/docs/terminology/entry-point#which-entry-point-is-being-used).
+
+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`](#--site-name) to overwrite an existing site.
+:::
+
+You can use this "Serve URL" to render a video on Remotion Cloud Run using:
+
+- The [`npx remotion cloudrun render`](/docs/cloudrun/cli/render) command.
+- Locally using the [`renderMedia()`](/docs/renderer/render-media) and [`renderStill()`](/docs/renderer/render-still) functions.
+- Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands
+
+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](/docs/cloudrun/region-selection) 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
+
+- [Setup guide](/docs/cloudrun/setup)
+- [Cloud Run sites](/docs/cloudrun/cli/sites)
\ No newline at end of file
diff --git a/packages/docs/docs/cloudrun/cli/sites/ls.mdx b/packages/docs/docs/cloudrun/cli/sites/ls.mdx
new file mode 100644
index 0000000000..0efbc28e81
--- /dev/null
+++ b/packages/docs/docs/cloudrun/cli/sites/ls.mdx
@@ -0,0 +1,114 @@
+---
+image: /generated/articles-docs-cloudrun-cli-sites-ls.png
+sidebar_label: ls
+title: 'npx remotion cloudrun sites ls'
+slug: /cloudrun/cli/sites/ls
+crumb: 'Cloud Run CLI Reference'
+---
+
+<ExperimentalBadge>
+ <p>
+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
+ </p>
+</ExperimentalBadge>
+
+```
+npx remotion cloudrun sites ls
+```
+
+Get a list of sites. The URL that is printed can be passed to the `render` command to render a video.
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ 2 sites in us-east1, in the remotion-example project.
+ <br />
+ <br />
+ Site: another-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
+ <br />
+ <br />
+ Site: test-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url:
+ https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
+ <br />
+ </pre>
+</details>
+
+## `--region`
+
+The [GCP region](/docs/cloudrun/region-selection) to list sites from.
+
+## `--all-regions`,
+
+Ignores region, returning sites across all regions for the project.
+
+```
+npx remotion cloudrun sites ls --all-regions
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ 3 sites in all regions, in the remotion-example project.
+ <br />
+ <br />
+ Site: another-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
+ <br />
+ <br />
+ Site: test-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url:
+ https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
+ <br />
+ <br />
+ Site: central-site
+ <br />
+ Bucket: remotioncloudrun-abcdefgh
+ <br />
+ Region: us-central1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
+ </pre>
+</details>
+
+## `--quiet`, `-q`
+
+Returns only a list of space-separated sites.
+
+```
+npx remotion cloudrun sites ls -q
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ another-site test-site central-site
+ <br />
+ </pre>
+</details>
+
+## See also
+
+- [Setup guide](/docs/cloudrun/setup)
+- [Cloud Run sites](/docs/cloudrun/cli/sites)
\ No newline at end of file
diff --git a/packages/docs/docs/cloudrun/cli/sites/rm.mdx b/packages/docs/docs/cloudrun/cli/sites/rm.mdx
new file mode 100644
index 0000000000..8bf641c0a0
--- /dev/null
+++ b/packages/docs/docs/cloudrun/cli/sites/rm.mdx
@@ -0,0 +1,60 @@
+---
+image: /generated/articles-docs-cloudrun-cli-sites-rm.png
+sidebar_label: rm
+title: 'npx remotion cloudrun sites rm'
+slug: /cloudrun/cli/sites/rm
+crumb: 'Cloud Run CLI Reference'
+---
+
+<ExperimentalBadge>
+ <p>
+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
+ </p>
+</ExperimentalBadge>
+
+```bash
+npx remotion cloudrun sites rm central-site
+npx remotion cloudrun sites rm central-site another-site # multiple at once
+```
+
+Removes a site (or multiple) from Cloud Storage by it's ID.
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Site: central-site
+ <br />
+ Bucket: remotioncloudrun-abcdefgh
+ <br />
+ Region: us-central1
+ <br />
+ Serve Url:
+ https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) Y<br />
+ Deleted site central-site from bucket remotioncloudrun-abcdefgh.
+ <br />
+ </pre>
+</details>
+
+## `--region`
+
+The [GCP region](/docs/cloudrun/region-selection) to remove sites from.
+
+:::note
+The `rm` command does not support the --all-regions flag, as it is possible to have the same site name in multiple regions. This makes it difficult to remove multiple site-names from multiple regions.
+:::
+
+## `--yes`, `-y`
+
+Removes a site (or multiple) without asking for confirmation.
+
+```
+npx remotion cloudrun sites rm central-site -y
+```
+
+## See also
+
+- [Setup guide](/docs/cloudrun/setup)
+- [Cloud Run sites](/docs/cloudrun/cli/sites)
\ No newline at end of file
diff --git a/packages/docs/docs/cloudrun/cli/sites/rmall.mdx b/packages/docs/docs/cloudrun/cli/sites/rmall.mdx
new file mode 100644
index 0000000000..46ca2539fb
--- /dev/null
+++ b/packages/docs/docs/cloudrun/cli/sites/rmall.mdx
@@ -0,0 +1,126 @@
+---
+image: /generated/articles-docs-cloudrun-cli-sites-rmall.png
+sidebar_label: rmall
+title: 'npx remotion cloudrun sites rmall'
+slug: /cloudrun/cli/sites/rmall
+crumb: 'Cloud Run CLI Reference'
+---
+
+<ExperimentalBadge>
+ <p>
+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.
+ </p>
+</ExperimentalBadge>
+
+```bash
+npx remotion cloudrun sites rmall
+```
+
+Remove all sites in the selected GCP project.
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Retrieving sites in us-east1.
+ <br />
+ <br />
+ Site: another-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) n<br />
+ Skipping site - another-site.
+ <br />
+ <br />
+ <br />
+ Site: test-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) n<br />
+ Skipping site - test-site.
+ </pre>
+</details>
+
+## `--region`
+
+The [GCP region](/docs/cloudrun/region-selection) to remove all sites from.
+
+## `--all-regions`,
+
+Ignores region, removing sites across all regions for the project.
+
+```
+npx remotion cloudrun sites rmall --all-regions
+```
+
+<details>
+ <summary>Example output</summary>
+ <pre>
+ Retrieving sites in all regions.
+ <br />
+ <br />
+ Site: another-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/another-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) n<br />
+ Skipping site - another-site.
+ <br />
+ <br />
+ <br />
+ Site: test-site
+ <br />
+ Bucket: remotioncloudrun-12345
+ <br />
+ Region: us-east1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-12345/sites/test-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) n<br />
+ Skipping site - test-site.
+ <br />
+ <br />
+ <br />
+ Site: central-site
+ <br />
+ Bucket: remotioncloudrun-abcdefgh
+ <br />
+ Region: us-central1
+ <br />
+ Serve Url: https://storage.googleapis.com/remotioncloudrun-abcdefgh/sites/central-site/index.html
+ <br />
+ <br />
+ Delete? (Y/n) n<br />
+ Skipping site - central-site.
+ </pre>
+</details>
+
+## `--yes`, `-y`
+
+Removes all sites without asking for confirmation.
+
+```
+npx remotion cloudrun sites rmall -y
+```
+
+## See also
+
+- [Setup guide](/docs/cloudrun/setup)
+- [Cloud Run sites](/docs/cloudrun/cli/sites)
\ No newline at end of file
diff --git a/packages/docs/docs/cloudrun/cli/still.mdx b/packages/docs/docs/cloudrun/cli/still.mdx
index 2206a5fc0a..94c8b7d119 100644
--- a/packages/docs/docs/cloudrun/cli/still.mdx
+++ b/packages/docs/docs/cloudrun/cli/still.mdx
@@ -21,7 +21,7 @@ The structure of a command is as follows:
npx remotion cloudrun still <serve-url> [<still-id>] [<output-location>]
```
-- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites#create) command or calling [`deployService()`](/docs/cloudrun/deployservice).
+- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites/create) command or calling [`deployService()`](/docs/cloudrun/deployservice).
- The [still ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.
- The `output-location` parameter is optional. If you don't specify it, the image is stored in your Cloud Storage bucket. If you specify a location, it gets downloaded to your device in an additional step.
diff --git a/packages/docs/docs/cloudrun/deploysite.mdx b/packages/docs/docs/cloudrun/deploysite.mdx
index f84bcef4e4..b8f6d58b47 100644
--- a/packages/docs/docs/cloudrun/deploysite.mdx
+++ b/packages/docs/docs/cloudrun/deploysite.mdx
@@ -139,6 +139,6 @@ Each one is a `number`.
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/cloudrun/src/api/deploy-site.ts)
-- [CLI equivalent: `npx remotion cloudrun sites create`](/docs/cloudrun/cli/sites#create)
+- [CLI equivalent: `npx remotion cloudrun sites create`](/docs/cloudrun/cli/sites/create)
- [getSites()](/docs/cloudrun/getsites)
- [deleteSite()](/docs/cloudrun/deletesite)
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index a5ca4449cf..b0fd35f05d 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -41,7 +41,20 @@ module.exports = {
id: 'cloudrun/cli',
},
items: [
- 'cloudrun/cli/sites',
+ {
+ type: 'category',
+ label: 'sites',
+ link: {
+ type: 'doc',
+ id: 'cloudrun/cli/sites',
+ },
+ items: [
+ 'cloudrun/cli/sites/create',
+ 'cloudrun/cli/sites/ls',
+ 'cloudrun/cli/sites/rm',
+ 'cloudrun/cli/sites/rmall',
+ ],
+ },
{
type: 'category',
label: 'services',
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index ac34ab569e..50280970cb 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -638,6 +638,42 @@ export const articles = [
noAi: false,
slug: 'cloudrun/cli/services',
},
+ {
+ id: 'cloudrun/cli/services/deploy',
+ title: 'npx remotion cloudrun services deploy',
+ relativePath: 'docs/cloudrun/cli/services/deploy.mdx',
+ compId: 'articles-docs-cloudrun-cli-services-deploy',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/services/deploy',
+ },
+ {
+ id: 'cloudrun/cli/services/ls',
+ title: 'npx remotion cloudrun services ls',
+ relativePath: 'docs/cloudrun/cli/services/ls.mdx',
+ compId: 'articles-docs-cloudrun-cli-services-ls',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/services/ls',
+ },
+ {
+ id: 'cloudrun/cli/services/rm',
+ title: 'npx remotion cloudrun services rm',
+ relativePath: 'docs/cloudrun/cli/services/rm.mdx',
+ compId: 'articles-docs-cloudrun-cli-services-rm',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/services/rm',
+ },
+ {
+ id: 'cloudrun/cli/services/rmall',
+ title: 'npx remotion cloudrun services rmall',
+ relativePath: 'docs/cloudrun/cli/services/rmall.mdx',
+ compId: 'articles-docs-cloudrun-cli-services-rmall',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/services/rmall',
+ },
{
id: 'sites',
title: 'npx remotion cloudrun sites',
@@ -647,6 +683,42 @@ export const articles = [
noAi: false,
slug: 'cloudrun/cli/sites',
},
+ {
+ id: 'cloudrun/cli/sites/create',
+ title: 'npx remotion cloudrun sites create',
+ relativePath: 'docs/cloudrun/cli/sites/create.mdx',
+ compId: 'articles-docs-cloudrun-cli-sites-create',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/sites/create',
+ },
+ {
+ id: 'cloudrun/cli/sites/ls',
+ title: 'npx remotion cloudrun sites ls',
+ relativePath: 'docs/cloudrun/cli/sites/ls.mdx',
+ compId: 'articles-docs-cloudrun-cli-sites-ls',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/sites/ls',
+ },
+ {
+ id: 'cloudrun/cli/sites/rm',
+ title: 'npx remotion cloudrun sites rm',
+ relativePath: 'docs/cloudrun/cli/sites/rm.mdx',
+ compId: 'articles-docs-cloudrun-cli-sites-rm',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/sites/rm',
+ },
+ {
+ id: 'cloudrun/cli/sites/rmall',
+ title: 'npx remotion cloudrun sites rmall',
+ relativePath: 'docs/cloudrun/cli/sites/rmall.mdx',
+ compId: 'articles-docs-cloudrun-cli-sites-rmall',
+ crumb: 'Cloud Run CLI Reference',
+ noAi: false,
+ slug: 'cloudrun/cli/sites/rmall',
+ },
{
id: 'still',
title: 'npx remotion cloudrun still',
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-services-deploy.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-deploy.png
new file mode 100644
index 0000000000..c788790847
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-deploy.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-services-ls.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-ls.png
new file mode 100644
index 0000000000..463f16705d
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-ls.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rm.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rm.png
new file mode 100644
index 0000000000..f271bc51ad
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rm.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rmall.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rmall.png
new file mode 100644
index 0000000000..c75b6ed1a4
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-services-rmall.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-create.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-create.png
new file mode 100644
index 0000000000..dffcddb68e
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-create.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-ls.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-ls.png
new file mode 100644
index 0000000000..331dfc270e
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-ls.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rm.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rm.png
new file mode 100644
index 0000000000..f8530c73eb
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rm.png differ
diff --git a/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rmall.png b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rmall.png
new file mode 100644
index 0000000000..894e34e4f8
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-cloudrun-cli-sites-rmall.png differ