0

trying to use the WP CLI for search-replace but it is not working, I get this message below.

Error: This does not seem to be a WordPress installation.
Pass --path=`path/to/wordpress` or run `wp core download`

I am running this command at the root of the WP site

thoughts?

greybeard
  • 2,249
  • 8
  • 30
  • 66
chewie
  • 529
  • 4
  • 17

1 Answers1

0

Latest version of WP CLI specifically looks for wp-includes/version.php in the ABSPATH directory: check that ABSPATH constant is properly defined, and that wp-includes/version.php file exists inside of directory defined in ABSPATH constant.

Source: https://github.com/wp-cli/wp-cli/blob/main/php/WP_CLI/Runner.php#L960

Caleb
  • 1,058
  • 1
  • 7
  • 18