WPCLI doesn’t recognize the site

There is only one function in wp-cli which will return this error and it is wp_not_installed

wp_not_installed definition.

as you see function is checking if your site is installed by calling function from WordPress core is_blog_installed.

is_blog_installed definition.

It is hard to tell what is happening exactly with your site but I would try to debug this two functions.