Skip to content
Docs menuSwap a provider

Swap a provider

Move a module to another provider after you have started. There is no swap command: you sync the module with the new provider.

Last updated November 1, 2026

Steps

  1. 1
    Check what depends on itSome modules need others: payments, storage and auth need the database and email, and AI chat attachments need storage. See Set up your modules.
  2. 2
    Commit your workThe CLI copies the module's files again and overwrites your edits to them. A clean commit lets you review the diff and re-apply what you changed.
  3. 3
    Sync the module with the new providerUse sync (or add --force) with --provider, or --variant for the auth structure.
    npx tailar@latest sync emails --provider postmark
    npx tailar@latest add emails --provider postmark --force
  4. 4
    Read what changedThe CLI removes the files only the previous provider owned, prints how many it removed and which environment variables changed. It never edits .env: add the new keys yourself and remove the old ones.
  5. 5
    Move your dataNothing is migrated for you. Switching billing provider after customers exist leaves their rows tagged with the old provider; switching storage provider leaves old files in the old bucket (each row records its provider and bucket). Switching database provider needs a new database and a data export and import.
ModuleCommandValues
Databasesync db --provider <p>postgres, mysql, mongodb
Emailsync emails --provider <p>resend, postmark, sendgrid
Paymentssync payments --provider <p>stripe, lemonsqueezy, paddle
Storagesync storage --provider <p>r2, s3, gcs
Auth structuresync auth --variant <v>user-based, organization-based
npx prisma db push

Run npx prisma db push afterwards if the module's Prisma schema changed. After changing storage, run tailar sync ai so chat attachments follow.