How to Reinstall WordPress: WP-CLI vs WordPress Dashboard for Reinstalling Core Files
Use WP-CLI to reinstall WordPress core when you have SSH access and need a clean, controlled repair. Use the WordPress Dashboard when the admin area still works and you need …