Back

Initializing appwrite.json collections

  • 0
  • Databases
  • Cloud
Vinninho
25 Mar, 2024, 21:16

I have an existing appwrite project created using the web platform. I want appwrite.json collections to be updated. I've tried running appwrite init collection it says success but no change in appwrite.json

TL;DR
Developers are troubleshooting issues with updating `appwrite.json` collections using the Appwrite CLI. Suggestions include ensuring the correct database is selected before pressing enter and trying a different CLI version like 4.2.1. Double-check the `appwrite.json` file for any changes and verify the connection to the right Appwrite instance and project.
Steven
25 Mar, 2024, 21:18

make sure you're connecting to the right appwrite instance and project

Vinninho
25 Mar, 2024, 21:30

I am it's even prompting for me to select one of the db on my project

Steven
25 Mar, 2024, 21:31

are you sure there's no change in the appwrite.json? did you scroll through all of it?

Vinninho
25 Mar, 2024, 21:33

I mean it's not even long, it only has the projectId and projectName. Nothing else

Steven
25 Mar, 2024, 21:33

what version of the Appwrite CLI are you using?

Vinninho
25 Mar, 2024, 21:34

The latest one, I've just installed it

Steven
25 Mar, 2024, 21:34

would you please try version 4.2.1?

Steven
25 Mar, 2024, 21:35

oh wait...did you actually select your DB before pressing enter?

Vinninho
25 Mar, 2024, 21:35

yes, it said success

Vinninho
25 Mar, 2024, 21:37

Still no change

Steven
25 Mar, 2024, 21:53

Please share a screenshot right before you press enter

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