For most of its life, WordPress has been built using a simple code-base with a dash of object oriented PHP being the most abstract system. In the past few years however this is changing for the better. From unit testing to CSS preprocessing and command line tools, more and more developer-friendly assets are popping up. In this article we’ll look at one of my favourites: WP-CLI. WP-CLI is a command line tool for managing many-many aspects of a WordPress installation. It can add/remove users, posts, categories, insert test data, search and replace in the database, and much more! Let’s take a look. If you have a Kinsta account on our new Google Cloud based architecture you have access to WP-CLI already, simply SSH into your server to get started. Getting WP-CLI To get started you’ll need to install WP-CLI – a very simple process. The steps for Linux and OSX are the following, issue these three commands one after the other: curl -O chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp If something goes wrong or you are on Windows refer to the basic instructions or the alternative installation
Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.