Back

Copy database schema to new appwrite environment

  • 0
  • Tools
  • Databases
  • Web
CaptainKeyes
13 Feb, 2024, 19:54

Hi I was wondering if it would be possible to duplicate an environment so that I don't have to manually replicate the schema I'm using in my dev environment. Is there a way to do this using the API or an SDK?

TL;DR
Message: Developer wants to know if it's possible to duplicate an environment to avoid manually replicating the schema in the dev environment. They mention using the CLI to pull down a JSON representation of the database structure and then deploying it.
Kenny
13 Feb, 2024, 19:55

If you have the appwrite cli you can do appwrite init collection to pull down a json representation of your database structure, then do appwrite deploy collection to deploy it.

CaptainKeyes
13 Feb, 2024, 19:57

oh that's awesome i didn't know about the cli!

CaptainKeyes
13 Feb, 2024, 19:58

thanks!

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