appwrite / sdk-for-cli

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

📚 Documentation: Insufficient examples in documentation about some cli options #102

Closed Weav3r closed 3 months ago

Weav3r commented 7 months ago

💭 Description

First of all, thanks for all your hard work. The cli has been great, however, I've been facing a couple of issues figuring out how to use some of the command options more spcifically how to build queries using --queries. This is little documentation on how to build the queries. The only resource that gives a bit of a hint on how to do that is the issue on the main appwrite repository but after trying it it still doesn't work. Please any help concerning how to build the queries would be greatly appreciated. Thank you. P.S. emulating the examples in the referenced issue, here's what I tried and other variations of it which did not work. appwrite users list --queries="phone.equal('+123456789')";

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

stnguyen90 commented 4 months ago

@Weav3r, thanks for creating this issue! 🙏🏼 You can find an example of how to send multiple arguments here and here. In addition, the string you would pass for the query is documented here. As such, it should look like:

appwrite users list --queries 'equal("phone", "+123456789")'

Does that answer your question?

Weav3r commented 4 months ago

@stnguyen90 Forgot I created this issue. You answered the same post I created about this on Discord a while ago. Thanks.