Export data to your instance

Go to Settings -> API Key to create an API key for your user (if you don't have it yet).

Save your API key to the environment variable file using the following command. The file is located in ~/flow-backend/docker

cd ~/flow-backend/docker
echo APIKEY="<your_key>" >> .env

Run script to export data from our site and import it to the local server:

./import-data.ts

The script also needs SERVICE_ROLE_KEY variable from your .env file, which will be loaded automatically if you are in the same folder.

Exported data contains:

  • Public profile

  • Wallets

  • Flows

  • Nodes

  • KVStore data

  • API Keys

Currently, import will fail if there are conflict, to clean up data and import them again, run

delete from auth.users;
delete from nodes;

in you Supabase dashboard.

Last updated

Was this helpful?