Hitta nått kul:
13 Pixlar   /   Tips   /   Kodtips   /   Install wp-cli on Windows

Install wp-cli on Windows

6 december, 2015

Make sure you have php installed and in your path so you can execute it globally.

Download wp-cli.phar manually and save it to a folder, for example c:\wp-cli

Create a file named wp.bat in c:\wp-cli with the following contents:

@ECHO OFF
php "c:/wp-cli/wp-cli.phar" %*

Add c:\wp-cli to your path:

setx path "%path%;c:\wp-cli"

You can now use wp-cli from anywhere in Windows command line