[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
- _APP_OPTIONS_ROUTER_PROTECTION
Hi Everyone, I just setup a fresh 1.9.0 on a server. Configured everything and now when i try to connect to appwrite for first time setup i get a _APP_OPTIONS_R...
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....