A more RESTful WP-CLI aims to unlocking the potential of the WP REST API at the command line. Project backed by Pressed, Chris Lema, Human Made, Pagely, Pantheon and many others. Learn more →
UNIX-like environment (OS X, Linux, FreeBSD, Cygwin); limited support in Windows environment
PHP 5.3.2 or later
WordPress 3.7 or later
Installing (And Upgrading)
First, download wp-cli.phar using wget or curl. For example:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
Then, check if it works:
php wp-cli.phar --info
To be able to type just wp, instead of php wp-cli.phar, you need to make the file executable and move it to somewhere in your PATH. For example:
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
Now try running wp --info.
Upgrade using the same procedure.
If you’re using MAMP, you will probably get a MySQL error, because the php found in your PATH is not the same as the PHP used by MAMP. Here is one way to fix it.
Getting Started with WP-CLI (includes video)
Alternative Install Methods
WP-CLI also comes with a tab completion script for Bash. Just download wp-completion.bash and source it from ~/.bash_profile:
(Don’t forget to run source ~/.bash_profile afterwards)
Go into a WordPress root folder:
Typing wp should show you output similar to this:
wp blog create|delete
wp cache add|decr|delete|flush|get|incr|replace|set|type
wp comment create|delete|trash|untrash|spam|unspam|approve|unapprove|count|status|last
wp core download|config|is-installed|install|install-network|version|update|update-db
wp db create|drop|reset|optimize|repair|connect|cli|query|export|import
See 'wp help <command>' for more information on a specific command.
Let’s try to install the Hello Dolly plugin from wordpress.org:
wp plugin install hello-dolly
Installing Hello Dolly (1.5)
Downloading install package from http://downloads.WordPress.org/plugin/hello-dolly.1.5.zip ...
Unpacking the package ...
Installing the plugin ...
Plugin installed successfully.
On a multisite installation, you need to pass a --url parameter, so that WP-CLI knows which site it’s supposed to be operating on:
wp theme status --url=localhost/wp/test
If you have a subdomain installation, it would look like this:
wp theme status --url=test.example.com
If you’re usually working on the same site most of the time, you can create a wp-cli.yml file in the root directory:
Then, you can call wp without the --url parameter again:
wp theme status
While it has its own Word Flow predictive keyboard technology, Microsoft has been diving deeper into intelligent assistance with Cortana. SwiftKey had always talked about the potential for the keyboard to be a useful space to take action, in addition to just entering letters or words, based on the rich set of contextual information that can be gleaned from what a user is typing.
The deal, a source confirmed, is in the range of $250 million and is expected to be formally announced Wednesday London time. However, the Financial Times got the scoop, reporting it earlier Tuesday.
SwiftKey emerged as a top rival to Swype, which was bought several years back by Nuance. Its keyboards are available for Android and the iPhone and its technology is used within BlackBerry 10 devices.
The purchase shows that Microsoft continues to be willing to buy its way into a better mobile position, especially with software that works on rival devices. In recent months the company has purchased email program Acompli and calendar app Sunrise.
The move comes as Microsoft has scaled back its Windows Phone ambitions, slashing thousands of jobs and writing off virtually the entire price it paid to acquire Nokia’s mobile phone unit.
( 36 ) And [the believers among] those to whom We have given the [previous] Scripture rejoice at what has been revealed to you, [O Muhammad], but among the [opposing] factions are those who deny part of it. Say, "I have only been commanded to worship Allah and not associate [anything] with Him. To Him I invite, and to Him is my return."
( 37 ) And thus We have revealed it as an Arabic legislation. And if you should follow their inclinations after what has come to you of knowledge, you would not have against Allah any ally or any protector.
( 38 ) And We have already sent messengers before you and assigned to them wives and descendants. And it was not for a messenger to come with a sign except by permission of Allah. For every term is a decree.
( 39 ) Allah eliminates what He wills or confirms, and with Him is the Mother of the Book.
( 40 ) And whether We show you part of what We promise them or take you in death, upon you is only the [duty of] notification, and upon Us is the account.
( 41 ) Have they not seen that We set upon the land, reducing it from its borders? And Allah decides; there is no adjuster of His decision. And He is swift in account.
( 42 ) And those before them had plotted, but to Allah belongs the plan entirely. He knows what every soul earns, and the disbelievers will know for whom is the final home.
3 Lot redouane 20800 Mohammedia Morocco
- Lara Croft:Relic Run
- Rally Racer | Dirt
- CONTRACT KILLER 2
- Shadow Fight 2
OracleVoice: Cloud And Internet Of Things Fuel Java's Ongoing Momentum
Cloud And Internet Of Things Fuel Java's Ongoing MomentumOracleVoiceSimplify IT, Drive InnovationFOLLOW ON FORBES (931) Andrew Binstock, ORA
France is at war and will destroy ISIS, Hollande vows
<a href=" is at war, President François Hollande said on Monday morning in a special address after the deadly attacks that struck the French
Donald Trump: Justin Trudeau's Cabinet Pledge Not For Me
Donald Trump: Justin Trudeau's Cabinet Pledge Not For MeCP | By Alexander Panetta, The Canadian PressPosted: 11/11/2015 11:31 am EST Updated