The WordPress command-line interface (WP-CLI in short) is a very powerful tool. Usually used by advanced users, it can also be enormously helpful to users willing to learn a few basic commands.
For example: if a plugin completely breaks your WordPress installation, the easiest way to get it back online is to use WP-CLI to disable the offending plugin. All you need to enter in the command line is:
wp plugin deactivate offending-plugin-slug
If the plugin has an issue in the code, run this command that will ignore the plugin files:
wp plugin deactivate offending-plugin-slug --skip-plugins
You'll probably need to flush cache once the offending plugin is disabled for the store to come back online. See how to restart PHP workers lower in this article.
If you're not sure what the plugin slug is, run:
wp plugin list
And you'll get a simple list of all plugins, specifically their slugs:
Or you can disable all plugins:
wp plugin deactivate --all
WP-CLI is a great tool and it has amazing documentation, so we highly recommend you check it out and learn more about managing WordPress through the command-line interface.
Restart PHP Workers to Flush Cache
Once you're done with your changes, you need to restart PHP workers so that the changes make an immediate effect.
Domain Dig and Whois
If you need details on your domain Whois or DNS there are two commands that can be of help.
Command Dig shows you the value under a specific DNS record. For example:
dig A domain.com
This will display the A record. You can also specify an IP of a DNS server you want to query:
dig A domain.com @184.108.40.206