Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: add admonition for retrieving branch project id (#37861)

Andrew Valleteauc3298d8ca7be
diff --git a/apps/docs/content/guides/deployment/branching/configuration.mdx b/apps/docs/content/guides/deployment/branching/configuration.mdx
index 5355264fff2..2c2d00a94ae 100644
--- a/apps/docs/content/guides/deployment/branching/configuration.mdx
+++ b/apps/docs/content/guides/deployment/branching/configuration.mdx
@@ -34,6 +34,19 @@ supabase --experimental branches create --persistent
# Do you want to create a branch named develop? [Y/n]
```
+<Admonition type="tip">
+
+To retrieve the project ID for an existing branch, use the `branches list` command:
+
+```bash
+supabase --experimental branches list
+```
+
+This will display a table showing all your branches with their corresponding project ID.
+Use the value from the `BRANCH PROJECT ID` column as your `project_id` in the remote configuration.
+
+</Admonition>
+
### Configuration merging
When merging a PR into a persistent branch, the Supabase integration:
@@ -186,6 +199,19 @@ max_rows = 500
pool_size = 25
```
+<Admonition type="tip">
+
+To retrieve the project ID for an existing branch, use the `branches list` command:
+
+```bash
+supabase --experimental branches list
+```
+
+This will display a table showing all your branches with their corresponding project ID.
+Use the value from the `BRANCH PROJECT ID` column as your `project_id` in the remote configuration.
+
+</Admonition>
+
### Feature branch configuration
For feature branches that need specific settings:
@@ -200,6 +226,19 @@ client_id = "env(GOOGLE_CLIENT_ID)"
secret = "env(GOOGLE_CLIENT_SECRET)"
```
+<Admonition type="tip">
+
+To retrieve the project ID for an existing branch, use the `branches list` command:
+
+```bash
+supabase --experimental branches list
+```
+
+This will display a table showing all your branches with their corresponding project ID.
+Use the value from the `BRANCH PROJECT ID` column as your `project_id` in the remote configuration.
+
+</Admonition>
+
## Next steps
- Explore [branching integrations](/docs/guides/deployment/branching/integrations)