Home / Compare builders / SPOE vs Emergent / How to export from Emergent

How to export your code from Emergent, and keep it running

On Standard or Pro, Save to GitHub pushes the code to a repository you clone; on every plan you can browse and copy it in the code editor, but there is no download button. The preview database exports with mongodump from the workspace terminal, while exporting production data is not yet self-serve, its FAQ says: its database guide points to the Database Manager or to support. Secrets and the database are not in a code export, and an app that signs users in with Emergent Auth or calls AI through the Universal Key keeps relying on Emergent for them until you replace them.

From Emergent's own docs, read 2026-10-26. Every step links to the page it is from.

Push to GitHub (Standard and Pro)

  1. The first time, connect your GitHub account from your profile and authorize Emergent to reach your repositories. (source)
  2. Keep keys in the Secrets manager, never in the code, and make sure .env is git-ignored before you push. (source)
  3. In the workspace, use Save → Save to GitHub. (source)
  4. Choose a new or existing repository and a branch. Emergent commits your changes. (source)
  5. Clone the repository to your computer. (source)

Copy it from the code editor (every plan)

  1. Click the Code button in the top toolbar to browse the files, and copy them out. (source)

Your data

  1. Open the Database Manager from inside Emergent, choose Preview or Production in the environment switcher in the top bar, and click a collection to see its documents. (source)
  2. Emergent's data page says each collection also exports as CSV from the Database Viewer; it does not give the clicks. (source)
  3. For the preview database: in the workspace's VS Code view, open the terminal with Ctrl+` (Cmd+` on a Mac) and run mongodump --uri="$MONGO_URL" --out=./dump. It writes a .bson file for each collection. (source)
  4. Right-click the dump folder in the VS Code file explorer and select Download. It is zipped and saved to your computer; mongorestore loads it into your own MongoDB. (source)
  5. For production data: the managed production cluster does not accept outside connections, so use the Database Manager, or email support@emergent.sh for help with a production export. (source)

Run it somewhere else

  1. Code pushed to GitHub can be published with any hosting provider you choose, Emergent's FAQ says. (source)
  2. Set your secrets again wherever it runs: they live only in Emergent, and the repository holds none of their values. (source)
  3. To move a published app's data to your own MongoDB (Emergent suggests MongoDB Atlas): import your export with mongorestore, add Emergent's egress IPs from app.emergent.sh/ip-addresses to its network access list, set MONGO_URL (and DB_NAME if it differs) under System keys in Preview → Manage → Secrets, then re-publish. (source)

What comes out

What stays behind, and needs replacing

Not on Emergent's pages

How SPOE differs

SPOE vs Emergent

Export guides for Lovable · Bolt · Base44 · v0 · Replit · Bubble · Rocket · Anything · Softr

How it works · Features · Models · Pricing · Docs · Blog · Handle checker · App ideas · Templates · Arcade · Compare builders · Alternatives · Best AI app builders · Verify an export · Developer API · Start free