Rank 4: Virtual Machine
No, my appwrite.json is same than before
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
No, my appwrite.json is same than before
Rank 4: Virtual Machine
I've tried entering collections and attributes from the console, without success after appwrite init collection
Admin
Try init collection again but please share the screenshot right before you press enter
Rank 4: Virtual Machine
from cli or console ?
Rank 4: Virtual Machine
From console
appwrite databases createCollection --databaseId development --collectionId test --name test
should works no ?
Admin
From cli
Admin
This should create the collection but it won't update the appwrite.json
Rank 4: Virtual Machine
JSON update is done with init ?
Rank 4: Virtual Machine
Admin
Yes. I mean after it asks you from which database and before you press enter
Rank 4: Virtual Machine
...... I feel stupid 😄
Rank 4: Virtual Machine
I didn't check the database...
Rank 4: Virtual Machine
{ "projectId": "new", "projectName": "new", "databases": [ { "$id": "development", "name": "development", "$createdAt": "2023-05-27T02:35:38.971+00:00", "$updatedAt": "2023-05-27T02:35:38.971+00:00" } ], "collections": [ { "$id": "admins", "$permissions": [], "databaseId": "development", "name": "admins", "enabled": true, "documentSecurity": false, "attributes": [], "indexes": [] } ]}Rank 4: Virtual Machine
Now it's ok
Rank 4: Virtual Machine
In the documentation, it is recommended to do everything from the cli, to avoid side effects. If I make changes in the console and then run init, should I be okay, or is that not recommended?
Rank 4: Virtual Machine
[SOLVED] Appwrite.json auto filled ?
Admin
Ya that could be okay
Rank 4: Virtual Machine
In any case, thank you Steven, sorry for the lost time 
Admin
No worries
Rank 4: Virtual Machine
Suggestion: Add a warning message when using init without selection?
Rank 4: Virtual Machine
@Steven What are the recommendations for using multiple prefs.json files? One for local, one for stagging, one for production
Admin
Ya I do something like that
Admin
Rank 4: Virtual Machine
That's all ? Ty for script
Rank 4: Virtual Machine