Docs

CLI: Import from Supabase, Firebase, Convex or Postgres

Move a Supabase, Firebase, Convex, Neon or other Postgres project to Sovaria with sov import: schema and rules, users with their passwords, data, documents, files, and a report.

Updated Nov 25, 2026

Run with --dry-run first: everything is read and checked, nothing is written. Every run writes sovaria-import-report.json. Step by step: Migrate from Supabase or Firebase, Migrate from Convex, Migrate from Neon or PostgreSQL.

sov import supabase \
  --db-url 'postgresql://postgres:PASSWORD@db.REF.supabase.co:5432/postgres' \
  --supabase-url https://REF.supabase.co --service-key "$SUPABASE_SERVICE_ROLE_KEY" --dry-run

#sov import

Import a Supabase, Firebase, Convex or Postgres (Neon, RDS…) project

sov import supabase

Import a Supabase project: schema + RLS, users with passwords, data, storage.

sov import supabase [OPTIONS]

Arguments and options

--db-urltextrequired
Supabase Postgres connection string (Settings › Database)
--supabase-urltextoptional
https://<ref>.supabase.co (for storage)
--service-keytextoptional
Supabase service_role key (for storage)
--onlytextoptional
Comma list: schema,auth,data,storage
--schematextoptionaldefault public
Schema to copy
--rows-per-insertint rangeoptionaldefault 50
--dry-runflagoptional
Check the schema and count the data, write nothing to Sovaria
--resumeflagoptional
Continue a data import that stopped part way (same source dump)
--storage-concurrencyint rangeoptionaldefault 8
Objects copied at the same time
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov import firebase

Import a Firebase project: Auth users with passwords, Firestore, Storage, and a rules report.

sov import firebase [OPTIONS]

Arguments and options

--service-accountpathoptional
Service account JSON (Firestore + Storage read)
--auth-exportpathoptional
File from: firebase auth:export users.json --format=json
--hash-configpathoptional
JSON with base64_signer_key, base64_salt_separator, rounds, mem_cost
--rulespathoptional
firestore.rules: writes a report of Sovaria equivalents
--storage-buckettextoptional
GCS bucket (default <project>.appspot.com)
--to-buckettextoptionaldefault firebase-storage
Sovaria bucket for Firebase Storage objects
--onlytextoptional
Comma list: auth,firestore,storage,rules
--remap-uids / --keep-uidsflagoptional
Replace Firebase uids in documents with Sovaria user ids
--dry-runflagoptional
Read everything, write nothing to Sovaria
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov import convex

Import a Convex deployment: Convex Auth users with passwords, every table, file storage.

sov import convex [OPTIONS]

Arguments and options

--snapshotfilerequired
ZIP from: npx convex export --path snapshot.zip (add --include-file-storage for files)
--to-buckettextoptionaldefault convex-storage
Sovaria bucket for Convex file storage
--onlytextoptional
Comma list: auth,data,storage
--remap-ids / --keep-idsflagoptional
Replace Convex user ids in documents with Sovaria user ids
--dry-runflagoptional
Read everything, write nothing to Sovaria
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov import postgres

Import a Postgres database (Neon, RDS, Railway, self-hosted): schema, data, and your app's users.

sov import postgres [OPTIONS]

Arguments and options

--db-urltextrequired
Source Postgres connection string (Neon: the direct, unpooled one)
--users-querytextoptional
SELECT returning id, email, password_hash and optionally email_verified, name, phone
--onlytextoptional
Comma list: schema,data,users
--schematextoptionaldefault public
Schema to copy
--rows-per-insertint rangeoptionaldefault 50
--dry-runflagoptional
Check the schema and count the data, write nothing to Sovaria
--resumeflagoptional
Continue a data import that stopped part way (same source dump)
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseFirebase Auth export and Firestore export
Supabasesupabase db dump
SovariaCLI: Import from Supabase, Firebase, Convex or Postgres

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.