I'm trying to search for a string like this: wp db search some-string and get: Error: 'search' is not a registered subcommand of 'db'. See 'wp help db'. wp help db lists 11 subcommands and search is not one of them.

How do I add or use the search subcommand?

I found docs on the global parameter to disable subcommands (disabled_commands: ) but there is no config file (such as wp-cli.local.yml) that would disable subcommands. I installed wp-cli and am the only user, so I should have a default install on OSX.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.