Hello,
I created a new droplet on Digital Ocean with the Appwrite deployment. In the console I created a database named default and a couple of collections, which works great. It seems like I have some kind of disconnect with the Appwrite CLI. When I use the appwrite databases listCollections --databaseId default
command it returns ✗ Error Database not found
I should also mention I created a function using the CLI and created a deployment. This new function does not show up in my console. Any help apprectiated thanks!
If you use appwrite databases list
you can see all the databases you have within the context of your project, it should then also give you the name and ID of the database. Make sure that in the output the database you want to interact with actually has the ID default
.
Hello Emilia. In the CLI I did run that command earlier and it does not list any databases. It returns 0 databases.
Are you sure you're in the correct project? Since you did mention making the database through the web-ui.
How do I check that?
I'm actually not sure if you can see which project you're currently in, but you can switch projects using appwrite intit project
and then choosing the Link this directory to an existing Appwrite project
Hi, so when I run this command I get An Appwrite project ( eventlinkup ) is already associated with the current directory. Would you like to
override (Y/n)
That is the project I created from the console.
I am guessing the answer is yes, I'm using the correct project
Then I'd check the web interface to make sure you actually made the database
It would be kind of weird that it wouldn't show up in the CLI if it was actually there
Ok, I figured it out, Looks like there is a section in the console called "Personal Projects" In that section is where I created a project and the database. There is also a project named eventlinkup, which is the one the CLI is currently using. Thanks for the help. Not sure how I did that.
If you do appwrite init project
and choose the first option you'll be guided through making a new project, so I'm guessing that's what happened
Yep. I can see everything now. Thanks for all the help!
No worries, glad everything is working now
[SOLVED] Console and CLI issue
Recommended threads
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...