Start Using WP-CLI on Your Host


At this point, I think most people who develop solutions WordPress on a regular basis are familiar with using WP-CLI. Installing it locally on your system is one thing, using it on your host is another (but it’s all the same once you’re connected). Case in point: Lately, I’ve been spending a few evenings and times during the weekends working on this site and trying to get it ready for the upcoming redesign. Part of doing that includes using WP-CLI.
If you’re someone on SiteGround (or any host that support WP-CLI, really) and are looking for how to get started using WP-CLI on your host, here’s a quick primer that should provide you everything you need to know to get up and running.
Using WP-CLI on Your Host
Though the steps below are meant to be used whenever you’re looking to use WP-CLI on your host (and any host, at that), I should be clear that I assume the following:
The host has WP-CLI pre-installed. Most modern WordPress hosts do. Even if they don’t, it’s not difficult to install, but that’s beyond the scope of this post.
I assume that you’re familiar with SSH keys. If you’re not, that’s okay as I’m going
Source: https://managewp.org/articles/15878/start-using-wp-cli-on-your-host




source https://williechiu40.wordpress.com/2017/08/15/start-using-wp-cli-on-your-host/