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
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