
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
- Help on importing data - error Unknown a...
Hey There! I want to create a local environment on my new computer, i wish to get the information i have on my staging appwrite cloud server. When running mig...
- How to get database file, like JSON or D...
Hi Appwrite team, I want to get database file to share database to another, btw, I can not found any thing like Download button inside Backup tabs. What can I d...
- appwrite cli types
I used the appwrite cli types comand for Dart and it worked well but there was an error regarding enums. As you can see in the image below, it used firstOrNull(...
