Steps
- 1Check 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.
- 2Commit 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.
- 3Sync the module with the new providerUse
sync(oradd --force) with--provider, or--variantfor the auth structure.npx tailar@latest sync emails --provider postmarknpx tailar@latest add emails --provider postmark --force - 4Read 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. - 5Move 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.
| Module | Command | Values |
|---|---|---|
| Database | sync db --provider <p> | postgres, mysql, mongodb |
| sync emails --provider <p> | resend, postmark, sendgrid | |
| Payments | sync payments --provider <p> | stripe, lemonsqueezy, paddle |
| Storage | sync storage --provider <p> | r2, s3, gcs |
| Auth structure | sync 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.