The Themosis framework comes with a WP-CLI configuration file which points to the folder where WordPress is installed. WP-CLI is a command line tool for handling your WordPress installation.
Please first check the WP-CLI requirements before installing it.
Execute the following statements in your Terminal
:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
This will allow you to use the wp
command inside your Terminal.
Run the following composer statement from your Console
:
composer create-project wp-cli/wp-cli --no-dev
This will download and create a directory wp-cli
on your system. We recommend to store this directory on a location like c:\developer\tools\
to avoid mixing your development tools and personal files.
Then add the wp-cli\bin
folder to your system variable PATH
. For example, using the recommended installation location, you'll store the following path to your system variable PATH
: c:\developer\tools\wp-cli\bin;
This will allow you to use the wp
command inside your Console.
We have an ongoing project in order to add a themosis
command directly into the WP_Cli. Please check this open GitHub issue if you have any suggestions or features requests regarding a Themosis CLI tool.