mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem The scoped token editor uses different access labels from OAuth. Its permission descriptions are smaller, and the accordion headers can cut across the rounded corners. ## Solution Use **No access**, **Read only**, and **Read and write** in the scoped token editor. Each permission keeps its existing access levels. Make descriptions easier to read, keep space around badges, and align selectors in a column on wider screens. Use the same colour for borders and dividers, and round the outside edges of the permission list and capability cards. Use sentence case for permission names in the picker and matching documentation. | Before | After | | --- | --- | | <img width="767" height="536" alt="CleanShot 2026-11-27 at 11 53 58" src="https://github.com/user-attachments/assets/f2c36703-9383-49cb-89f0-86f3da0de10c" /> | <img width="765" height="549" alt="CleanShot 2026-11-27 at 11 53 18" src="https://github.com/user-attachments/assets/c5abe728-47c9-4594-9787-aff2bc54efec" /> | ## Review instructions 1. With scoped tokens enabled, open **Account → Access Tokens** and click **Generate new token**. 2. Choose a resource and expand a permission group. Check the available access levels, the spacing around badges, and the selector alignment at desktop and narrow widths. 3. Expand and collapse the first and last permission groups. Open a scoped token’s details and check the capability card corners.
191 lines
8.9 KiB
Plaintext
191 lines
8.9 KiB
Plaintext
---
|
|
id: 'project-transfer'
|
|
title: 'Transfer a project'
|
|
description: 'Transfer a Supabase project to another organization with the Dashboard or the Management API, while the project keeps its data, default URL, and API keys.'
|
|
---
|
|
|
|
Transfer a project to another organization to change who pays for it, to hand it to a client, or to move it to a different plan. A transfer changes the project's organization. The project keeps its data, default URL, and API keys.
|
|
|
|
## Overview
|
|
|
|
The _source organization_ is the organization the project belongs to before the transfer. The _target organization_ is the organization you move the project to.
|
|
|
|
Before you start, check what a transfer changes for downtime, billing, and access in [Changes after a project transfer](/docs/guides/platform/project-transfer/what-changes).
|
|
|
|
## Prerequisites
|
|
|
|
Before you transfer a project, check that you meet the following requirements:
|
|
|
|
- You're an **Owner** of the source organization. Check your role in the organization's [team settings](/dashboard/org/_/team).
|
|
- You're a member of the target organization with a [role for the whole organization](/docs/guides/platform/project-transfer/requirements#account-requirements).
|
|
- You use the same account in both organizations.
|
|
- Nothing [blocks the transfer](/docs/guides/platform/project-transfer/requirements#project-and-organization-requirements), such as a GitHub connection, an overdue invoice in a Free Plan or Pro Plan organization, or a feature that the target organization lacks.
|
|
|
|
For every requirement and what to do when one isn't met, see [Project transfer requirements](/docs/guides/platform/project-transfer/requirements).
|
|
|
|
To follow the Management API path, you also need an [access token](/dashboard/account/tokens). For a scoped token, under **Resource access**, select **Organization**, choose both the source and the target organization, and grant the following permissions:
|
|
|
|
- **Project settings** with **Read only** access, for the preview
|
|
- **Organization settings** with **Read and write** access, for the transfer
|
|
- **Organization members** with **Read only** access, for the check on the target organization
|
|
|
|
A token with **Project** access can't preview or transfer a project. For more information, see [Personal access tokens](/docs/guides/platform/personal-access-tokens).
|
|
|
|
## Procedure
|
|
|
|
Transfer one project at a time. To transfer several projects, repeat the steps for each project. The Supabase CLI has no transfer command.
|
|
|
|
If a check blocks the transfer, see [Troubleshoot a project transfer](/docs/guides/platform/project-transfer/troubleshooting) for the cause and the fix of each message.
|
|
|
|
<Tabs scrollable size="small" type="underlined" defaultActiveId="dashboard" queryGroup="method">
|
|
<TabPanel id="dashboard" label="Dashboard">
|
|
|
|
To transfer a project in the Supabase Dashboard, follow these steps:
|
|
|
|
1. Open the project's [general settings](/dashboard/project/_/settings/general).
|
|
2. In the **Transfer project** section, click **Transfer project**.
|
|
3. In **Select Target Organization**, select the organization to move the project to.
|
|
4. Read the result of the checks, which run when you select the target organization. A **Project cannot be transferred** box lists what blocks the transfer. Warnings list what the transfer changes or removes, such as add-ons, compute size, costs, or a Vercel connection. **Transfer Project** stays disabled until every check passes.
|
|
5. Click **Transfer Project**.
|
|
|
|
<Admonition type="caution">
|
|
|
|
A transfer to a Free Plan organization removes add-ons, and transferring the project back doesn't restore them. A transfer has no undo. To move a project back, transfer it again, which runs the same checks.
|
|
|
|
</Admonition>
|
|
|
|
<Image
|
|
alt="The Transfer project section of the project's general settings, with a Transfer project button next to the text Transfer project to another organization."
|
|
src={{
|
|
light: '/docs/img/guides/platform/project-transfer-overview--light.png',
|
|
dark: '/docs/img/guides/platform/project-transfer-overview.png',
|
|
}}
|
|
className="max-w-[600px] mx-auto! border rounded-md"
|
|
|
|
width={1530}
|
|
height={408}
|
|
/>
|
|
|
|
<Image
|
|
alt="The Transfer project dialog, with a Select Target Organization list, a Cancel button, and a Transfer Project button."
|
|
src={{
|
|
light: '/docs/img/guides/platform/project-transfer-modal--light.png',
|
|
dark: '/docs/img/guides/platform/project-transfer-modal.png',
|
|
}}
|
|
className="max-w-[600px] mx-auto!"
|
|
|
|
width={1540}
|
|
height={910}
|
|
/>
|
|
|
|
</TabPanel>
|
|
<TabPanel id="api" label="Management API">
|
|
|
|
To transfer a project with the Management API, follow these steps:
|
|
|
|
1. Set the token, the project ref, and the target organization's slug. The project ref is the **Project ID** in the project's [general settings](/dashboard/project/_/settings/general), and the slug is the **Organization slug** in the target organization's [general settings](/dashboard/org/_/general). Replace `YOUR_ACCESS_TOKEN`, `YOUR_PROJECT_REF`, and `YOUR_TARGET_ORG_SLUG` with your values:
|
|
|
|
```bash
|
|
export SUPABASE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
|
|
export PROJECT_REF="YOUR_PROJECT_REF"
|
|
export TARGET_ORG_SLUG="YOUR_TARGET_ORG_SLUG"
|
|
```
|
|
|
|
2. Preview the transfer:
|
|
|
|
```bash
|
|
curl -X POST "https://api.supabase.com/v2/projects/$PROJECT_REF/transfers/previews" \
|
|
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
|
|
-H "Content-Type: application/json" \
|
|
-d @- <<EOF
|
|
{
|
|
"data": {
|
|
"type": "project_transfer_input",
|
|
"attributes": { "target_organization_slug": "$TARGET_ORG_SLUG" }
|
|
}
|
|
}
|
|
EOF
|
|
```
|
|
|
|
The response has a `valid` field under `data.attributes`, next to lists of `errors`, `warnings`, and `info` messages. Continue when `valid` is `true`.
|
|
|
|
3. Transfer the project:
|
|
|
|
<Admonition type="caution">
|
|
|
|
A transfer to a Free Plan organization removes add-ons, and transferring the project back doesn't restore them. A transfer has no undo. To move a project back, transfer it again, which runs the same checks.
|
|
|
|
</Admonition>
|
|
|
|
```bash
|
|
curl -X POST "https://api.supabase.com/v2/projects/$PROJECT_REF/transfers" \
|
|
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
|
|
-H "Content-Type: application/json" \
|
|
-d @- <<EOF
|
|
{
|
|
"data": {
|
|
"type": "project_transfer_input",
|
|
"attributes": { "target_organization_slug": "$TARGET_ORG_SLUG" }
|
|
}
|
|
}
|
|
EOF
|
|
```
|
|
|
|
A successful transfer returns `200` with an empty body.
|
|
|
|
For the full request and response schemas, see [Preview a project transfer](/docs/reference/api/v2-preview-a-project-transfer) and [Transfer a project](/docs/reference/api/v2-transfer-a-project) in the Management API reference.
|
|
|
|
</TabPanel>
|
|
</Tabs>
|
|
|
|
The project now belongs to the target organization.
|
|
|
|
## Verify
|
|
|
|
To confirm that the transfer worked, check which organization the project belongs to.
|
|
|
|
<Tabs scrollable size="small" type="underlined" defaultActiveId="dashboard" queryGroup="method">
|
|
<TabPanel id="dashboard" label="Dashboard">
|
|
|
|
To check the project's organization in the Dashboard, follow these steps:
|
|
|
|
1. Open the list of [your organizations](/dashboard/organizations), and select the target organization.
|
|
2. Check that the project appears in the organization's list of projects.
|
|
|
|
</TabPanel>
|
|
<TabPanel id="api" label="Management API">
|
|
|
|
To check the project's organization with the Management API, follow these steps:
|
|
|
|
1. Request the project. Replace `YOUR_ACCESS_TOKEN` and `YOUR_PROJECT_REF` with your values, or leave out the two `export` lines if you set the variables for the transfer:
|
|
|
|
```bash
|
|
export SUPABASE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
|
|
export PROJECT_REF="YOUR_PROJECT_REF"
|
|
|
|
curl "https://api.supabase.com/v1/projects/$PROJECT_REF" \
|
|
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN"
|
|
```
|
|
|
|
2. Check that `organization_slug` in the response is the target organization's slug.
|
|
|
|
</TabPanel>
|
|
</Tabs>
|
|
|
|
## Next steps
|
|
|
|
After the transfer, use these pages:
|
|
|
|
- [Access and tokens](/docs/guides/platform/project-transfer/what-changes#access-and-tokens): replace access tokens and re-authorize apps that were scoped to the source organization.
|
|
- [GitHub integration](/docs/guides/deployment/branching/github-integration): if you disconnected the project from GitHub for the transfer, reconnect it.
|
|
|
|
## Related resources
|
|
|
|
To read more about transfers and the tasks that use them, see these pages:
|
|
|
|
- [Project transfer requirements](/docs/guides/platform/project-transfer/requirements): every check a transfer runs, and what to do about each one.
|
|
- [Transfer project ownership](/docs/guides/platform/project-transfer/transfer-ownership): hand a project to a client or to another account.
|
|
- [Transfer a Vercel-managed project](/docs/guides/platform/project-transfer/vercel-marketplace): move a project out of an organization managed through the Vercel Marketplace.
|
|
- [Pause a Pro or Team Plan project](/docs/guides/platform/project-transfer/pause-project): use a transfer to pause a project that can't be paused on its plan.
|
|
- [Migrating within Supabase](/docs/guides/platform/migrating-within-supabase): move a project to a different region, which a transfer can't do.
|