
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
- Invalid relationship value. Must be eith...
I'm getting this error when i try to update a document. The collection has a relatipship with 2 other collections. I don't understand why, when i update the doc...
- How do I do this. Please help!
Hey guys! Okay AI can't help so I'm asking real people now. 😓 Anyway I wanted to know how one solve this in Appwrite right now. So I have a form where I wante...
- Delete account on authentication
I'm building an authentication that need to a user a choice of delete their account when they need and on the documentation, if I find delete sessions or sessio...
