appwrite / sdk-for-cli

[READ-ONLY] Official Appwrite CLI >_
BSD 3-Clause "New" or "Revised" License
90 stars 27 forks source link

Appwrite Database CreateCollection #16

Closed shadowshot-x closed 2 years ago

shadowshot-x commented 3 years ago

I am trying to create a collection using Appwrite CLI. However, I cannot get the command to work. Each command throws a Server Error Message. I followed the examples and also tried to pass the parameters

appwrite database createCollection --name="todo-crud" --read="["*"]" --write="["*"]" --rules="[ {"label":"Name","key":"name","type":"text","default":"Empty Name","required":true,"array":false},]"

I get param read not optional if I run the below command appwrite database createCollection --name="todo-crud" --read="" --write="" --rules=""

stnguyen90 commented 2 years ago

@appwrite/core, the API specs show the type of the rules is an array of strings. How is that configured? I think it would need to be an array of objects.

lohanidamodar commented 2 years ago

With new cli this might not be relevant.

christyjacob4 commented 2 years ago

@shadowshot-x We released CLI 0.15 and this should no longer be an issue 🙂