wp-cli doesn’t find and wordpress installation

If no --path is passed, WP-CLI defaults to the current directory and looks for the wp-includes/version.php file.

So, make sure that the directory you’re in has such a file:

$ ls wp-includes
$ cat wp-includes/version.php
$ wp core version

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)