Back

[SOLVED] Is there a way to import / export the database schema?

  • 0
  • Databases
jSnake🐍🕊
5 May, 2023, 04:27

Is it possible to get database schema files in json that can be imported and / or exported with the appwrite console? Id like to be able to commit such work into source control and then be able to deploy it all once instead of manually adding databases, collections, attributes, and indexes.

TL;DR
Yes, it is possible to import and export the database schema in Appwrite console. You can use the CLI to do this. The CLI documentation can be found at <https://appwrite.io/docs/command-line>. By using the CLI, you can generate database schema files in JSON format that can be easily imported or exported. This allows you to commit your work into source control and deploy it all at once, avoiding the need for manual database setup.
Drake
5 May, 2023, 04:31

Not via the console, but you can use the CLI: https://appwrite.io/docs/command-line

jSnake🐍🕊
5 May, 2023, 06:24

unfortunately I couldn't remember the original login credentials so I decided to drop the whole instance and start over (didn't have that much server side so far). but on the bright side I have more of an understanding how the cli and deploying will work 🙂 I will go ahead and add [solved] to this question.

jSnake🐍🕊
5 May, 2023, 06:25

[SOLVED] Is there a way to import / export the database schema?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more