Manage WordPress using CLI tool? It’s possible!

Introduction

If you can automate something – do it! I was thinking about automate installing and configuring WordPress installation. I thought about writing my own tool for that but I found a ready command line tool which is great. Do you want to know how I use it?

I did not know this tool and I think is awesome. The wp-cli is extremely simple. Installation is very simple

To go throw the whole installation process I need to setup the configuration. I do it with a few simple commands

and when we have the database connection set up we can install the WordPress instance with one simple command

Easy, isn’t it? We set all the required data as arguments and the installation takes only a few seconds. I love it!

About author

Hi! I am Bartek. I'm a PHP developer but I other languages are not scary to me. My hobby is security and I try to learn as much as it's possible how to not be hacked. I like to know how things work. After hours I like playing Dota2 :)