Skip to content

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

Update setup steps

dannykng6c2e6ed9dbc0
diff --git a/apps/reference/docs/guides/migrations/firebase-auth.mdx b/apps/reference/docs/guides/migrations/firebase-auth.mdx
index 323de23eab1..0b9f1340600 100644
--- a/apps/reference/docs/guides/migrations/firebase-auth.mdx
+++ b/apps/reference/docs/guides/migrations/firebase-auth.mdx
@@ -13,6 +13,26 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
- `firestoreusers2json` ([TypeScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/firestoreusers2json.ts), [JavaScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/firestoreusers2json.js)) exports users from an existing Firebase project to a `.json` file on your local system.
- `import_users` ([TypeScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.ts), [JavaScript](https://github.com/supabase-community/firebase-to-supabase/blob/main/auth/import_users.js)) imports users from a saved `.json` file into your Supabase project (inserting those users into the `auth.users` table of your `PostgreSQL` database instance).
+## Set up the migration tool {#set-up-migration-tool}
+
+1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
+ ```
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
+1. In the `/auth` directory, create a file named `supabase-service.json` with the following contents:
+ ```json
+ {
+ "host": "database.server.com",
+ "password": "secretpassword",
+ "user": "postgres",
+ "database": "postgres",
+ "port": 5432
+ }
+ ```
+1. Go to the [Database settings](https://app.supabase.com/project/_/settings/database) for your project in the Supabase Dashboard.
+1. Under **Connection Info**, copy the Host string and replace the entry in your `supabase-service.json` file.
+1. Enter the password you used when you created your Supabase project in the `password` entry in the `supabase-service.json` file.
+
## Generate a Firebase private key {#generate-firebase-private-key}
1. Log in to your [Firebase Console](https://console.firebase.google.com/project) and open your project.
@@ -39,22 +59,6 @@ hash_config {
}
```
-## Set up the `supabase-service.json` file {#set-up-supabase-service-file}
-
-Create a file named `supabase-service.json` in the root of your migration project with the following contents:
-```json
-{
- "host": "database.server.com",
- "password": "secretpassword",
- "user": "postgres",
- "database": "postgres",
- "port": 5432
-}
-```
-1. Go to the [Database settings](https://app.supabase.com/project/_/settings/database) for your project in the Supabase Dashboard.
-1. Under **Connection Info**, copy the Host string and replace the entry in your `supabase-service.json` file.
-1. Enter the password you used when you created your Supabase project in the `password` entry in the `supabase-service.json` file.
-
## Command line options
### Dump Firestore users to a JSON file {#dump-firestore-users}
diff --git a/apps/reference/docs/guides/migrations/firebase-storage.mdx b/apps/reference/docs/guides/migrations/firebase-storage.mdx
index 5928a01e374..ba185671167 100644
--- a/apps/reference/docs/guides/migrations/firebase-storage.mdx
+++ b/apps/reference/docs/guides/migrations/firebase-storage.mdx
@@ -9,6 +9,17 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
1. Files are downloaded from a Firebase storage bucket to a local filesystem.
2. Files are uploaded from the local filesystem to a Supabase storage bucket.
+## Set up the migration tool {#set-up-migration-tool}
+
+1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
+ ```
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
+1. In the `/storage` directory, rename [supabase-keys-sample.js](https://github.com/supabase-community/firebase-to-supabase/blob/main/storage/supabase-keys-sample.js) to `supabase-keys.js`.
+1. Go to your Supabase project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard.
+1. Copy the **Project URL** and update the `SUPABASE_URL` value in `supabase-keys.js`.
+1. Under **Project API keys**, copy the **service_role** key and update the `SUPABASE_KEY` value in `supabase-keys.js`.
+
## Generate a Firebase private key {#generate-firebase-private-key}
1. Log in to your [Firebase Console](https://console.firebase.google.com/project) and open your project.
@@ -17,18 +28,6 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
1. Click **Generate new private key**.
1. Rename the downloaded file to `firebase-service.json`.
-## Set up the `supabase-keys.js` file {#set-up-supabase-keys}
-
-1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
- ```
- git clone https://github.com/supabase-community/firebase-to-supabase.git
- ```
-1. In the `/storage` directory, rename [supabase-keys-sample.js](https://github.com/supabase-community/firebase-to-supabase/blob/main/storage/supabase-keys-sample.js) to `supabase-keys.js`.
-1. Go to your Supabase project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard.
-1. Copy the **Project URL** and update the `SUPABASE_URL` value in `supabase-keys.js`.
-1. Under **Project API keys**, copy the **service_role** key and update the `SUPABASE_KEY` value in `supabase-keys.js`.
-1. Save the `supabase-keys.js` file.
-
## Command line options
### Download Firestore Storage bucket to a local filesystem folder {#download-firestore-storage-bucket}
diff --git a/apps/reference/docs/guides/migrations/firestore-data.mdx b/apps/reference/docs/guides/migrations/firestore-data.mdx
index 97407dcf565..009a78fdcdc 100644
--- a/apps/reference/docs/guides/migrations/firestore-data.mdx
+++ b/apps/reference/docs/guides/migrations/firestore-data.mdx
@@ -9,30 +9,34 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
The Firestore `collection` is "flattened" and converted to a table with basic columns of one of the following types: `text`, `numeric`, `boolean`, or `jsonb`. If your structure is more complex, you can write a program to split the newly-created `json` file into multiple, related tables before you import your `json` file(s) to Supabase.
-## Generate a Firebase private key {#generate-firebase-private-key}
-
-1. Log in to your [Firebase Console](https://console.firebase.google.com/project) and open your project.
-1. Click the gear icon next to **Project Overview** in the sidebar and select **Project Settings**.
-1. Click **Service Accounts** and select **Firebase Admin SDK**.
-1. Click **Generate new private key**.
-1. Rename the downloaded file to `firebase-service.json`.
-
-## Set up the `supabase-service.json` file {#set-up-supabase-service-file}
-
-Create a file named `supabase-service.json` in the root of your migration project with the following contents:
-```json
-{
+## Set up the migration tool {#set-up-migration-tool}
+
+1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
+ ```
+ git clone https://github.com/supabase-community/firebase-to-supabase.git
+ ```
+1. In the `/firestore` directory, create a file named `supabase-service.json` with the following contents:
+ ```json
+ {
"host": "database.server.com",
"password": "secretpassword",
"user": "postgres",
"database": "postgres",
"port": 5432
-}
-```
+ }
+ ```
1. Go to the [Database settings](https://app.supabase.com/project/_/settings/database) for your project in the Supabase Dashboard.
1. Under **Connection Info**, copy the Host string and replace the entry in your `supabase-service.json` file.
1. Enter the password you used when you created your Supabase project in the `password` entry in the `supabase-service.json` file.
+## Generate a Firebase private key {#generate-firebase-private-key}
+
+1. Log in to your [Firebase Console](https://console.firebase.google.com/project) and open your project.
+1. Click the gear icon next to **Project Overview** in the sidebar and select **Project Settings**.
+1. Click **Service Accounts** and select **Firebase Admin SDK**.
+1. Click **Generate new private key**.
+1. Rename the downloaded file to `firebase-service.json`.
+
## Command line options
### List all Firestore collections