Using WP-CLI on VVV without SSH

For years I’ve been using MAMP PRO. After blowing up my database recently, I decided to finally switch over to VVV. Luckily I got a fantastic introduction from Konstantin Obenland during the Contributor Day at the WordCamp Bangkok 2018.

After having touched VVV for almost two weeks, I decided to get my hands dirty this weekend and start migrating my projects over to VVV. While creating the projects (and their virtual hosts) was rather easy, I got stuck with using WP-CLI on VVV. After searching for a while, I stumbledĀ upon a post on Github from Joe Hoyle.

Joe suggested updating the wp-config.php or to use bash functionality to use WP-CLI within VVV without SSH. I decided to follow the first approach and changed the MySQL settings within my wp-config.php from

to

Please note that changing the DB_HOST only is not enough. Both, the DB_HOST, the DB_USER and the DB_PASSWORD have been changedĀ so that the WP-CLI can be used within VVV without SSH.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.