[SOLVED] How to use --permissions option on appwrite cli
- 0
- Web
- Databases
- Cloud
- Self Hosted
- Functions
Hi, how can I resolve this error?
zsh: number expected```
Try like this
appwrite databases createCollection --databaseId 646feb70c324e93d5f31 --collectionId 647033927850c2f34d16 --name area --permissions read(\"any\")
no luck it is returning this
unknown file attribute: "
What's the output of appwrite --version
?
2.0.2
Okay, what happened if you try to add quotes to all values and without the permissions ?
appwrite databases createCollection --databaseId "646feb70c324e93d5f31" --collectionId "647033927850c2f34d16" --name area
it creates the collection area
but I need to create it with permission. I am making a script for deleting a collection and recreating it again.
Good Just wanted to be sure about something.
So now try like this
appwrite databases createCollection --databaseId "646feb70c324e93d5f31" --collectionId "647033927850c2f34d16" --name area --permissions "read(\"any\")"
Nice! looks good! thanks man
[SOLVED] How to use --permissions option on appwrite cli
Recommended threads
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...