Error thrown

Call to undefined method WP_CLI::add_hook()