Back

Share preconfigured appwrite

  • 0
  • Web
zivkaziv95
19 Dec, 2023, 14:58

Hey, We have a project, functions and collections that we want to share between the developers(no data) and allow them to setup the dev environment quickly. What is the best practices around it?

Another question, what is the right way to update schema collection without losing data?

Thanks

TL;DR
The user wants to share a preconfigured appwrite setup among developers. The CLI cannot be used for this as it will erase data. To add attributes or make changes to the setup, the CLI can be used without data loss. For functions, using GitHub and sharing functions is recommended. However, there is no easy way to share collections. The user suggests creating a code to create, update, and delete collections based on a schema stored in a JSON file. Currently, there is no way to update a schema collection without deleting existing data. The user asks for best practices on sharing a setup and for a solution to update a schema collection without
Guille
19 Dec, 2023, 16:31

For function, the best way would be use github and share functions, for collection there is no easy way, you should create a code to create, update and delete collection based in a schema maybe stored in a json file.

currently there is no way to update schema collection without delete the data previously, I think there is a issue for that topic

Drake
19 Dec, 2023, 17:25

Use the CLI to quickly create things like collections and buckets: https://appwrite.io/docs/tooling/command-line/installation.

alon1874
19 Dec, 2023, 18:05

Thanks, what should we do if we only want to add an attribute or something like that? is it possible to do that with the cli with data lost?

Drake
19 Dec, 2023, 18:16

The CLI won't work for that at the moment as it will wipe the data.

If you want to handle updates, you'll need to create scripts

alon1874
19 Dec, 2023, 18:30

Cool, thanks for the quick reply

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