wp cli for hacked sites

rm -rf wp-admin

rm -rf wp-includes

wp core download --force --skip-content

wp core verify-checksums

wp plugin install $(wp plugin list --field=name) --force

wp theme install $(wp theme list --field=name) --force

(run wordfence scan)

wp user list --role=administrator
   -remove spammy users
   -verify default user role in General
   -reset salts