WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.

learn more… | top users | synonyms

0
votes
0answers
7 views

WP CLI > Error: Site not found

I can create a site using wp site create --slug=<slug> --title=<title> --email=<email> but if I try deleting it with wp site delete --slug=<slug> where <slug> is exactly ...
0
votes
1answer
14 views

PHP Parse error on WP-CLI, not on web server

I have a network of over a hundred sites and I try to use wp-cli to make bulk changes to many of these. Particularly to their wp_x_options table via wp --url=site.url option update However, wp ...
0
votes
1answer
32 views

How can I bulk delete media and attachments using WP-CLI?

I'm trying to mass delete 4000 images in a wordpress website. WP itself sets the max to 999, which would work fine and take a few minutes to delete them via the backend. However, I get REQUEST URI TOO ...
0
votes
0answers
23 views

wp-cli PHP warning “Unexpected character in input: '”

I start to get this warning in WP_CLI whenever I try any sort of command: PHP Warning: Unexpected character in input: ' in phar:///usr/local/bin/wp/php/wp-cli.php(23) : eval()'d code on line 40 ...
1
vote
1answer
38 views

Local Wordpress installs don't verfiy against wp-cli checksum check and how to fix that issue.

i've installed wp-cli today, while testing i ran into one surprising issue. on `wp core verify-checksums' the following errors showed up: Warning: File doesn't verify against checksum: ...
1
vote
1answer
64 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
0
votes
1answer
53 views

What's a better workflow for database migration?

When asked to work on an existing WordPress Site, I generally take a copy of the whole site and work on it locally. For quite a few years I have used a script such as the following after importing the ...
1
vote
1answer
30 views

Is resetting post data necessary with custom WP_CLI commands?

Is it strictly necessary to call wp_reset_postdata(); in a WP CLI command? I am doing it out of habit but just wondered if the $post object needed to be reset.
0
votes
2answers
80 views

WP CLI to set options

I have WP-CLI working fine using WP Multisite (or network). I can create blogs, add users, set permissions etc. But am not certain how to enable plugins for individual blogs via WP CLI. For example, ...
3
votes
2answers
228 views

How to run WP Cron the right way?

I have WordPress Multisite with several sites. I set up DISABLE_WP_CRON to true in my wp-config.php. How to run wp-cron.php the right way? If we set up cron task with wget or curl we have 30 sec ...
1
vote
1answer
39 views

How to perform WordPress backups using wp-cli?

I am relatively new to working with WordPress, but I am very comfortable with, and prefer to use the command line. I need to backup WordPress before performing a version upgrade. I came across wp-cli ...
4
votes
1answer
96 views

How to create a WP-CLI command with $_POST?

I would like to create a WP-CLI command for WordPress Database Reset plugin. In the main function it uses $_POST for the options but when running the command in cli they will not exist. How should ...
1
vote
1answer
139 views

how do you use Wp-cli on Shared Hosting? [closed]

I Have Godaddy Deluxe linux hosting it is shared server, so I don’t have the root password of the machine. I can create, move and delete files via SSH in my home folder but not in the root ...
2
votes
1answer
181 views

wp-cli import theme sample data

i am trying to create an automated process of installing a wordpress site from scrach (no db, no user, no files, no settings) to the point were the site is up and it has it's own custom theme with the ...
3
votes
1answer
479 views

Wordpress test environment on windows

I'm new to TDD and want to set up a test environment for my wordpress plugin. I was able to find a sample plugin from wp-cli with the very useful script. It was very easy to write the first test ...
3
votes
1answer
470 views

wp-cli is not working properly. No response from commands

I am trying to make a copy of a live site on a test server. I installed wp-cli and wp-cli sometimes works and sometimes doesn't. When it doesn't work, it just returns nothing. Not one character of ...
1
vote
1answer
114 views

Jetpack Upgrade fails with WP CLI [closed]

Been trying to upgrade Jetpack from the admin for a few times on my site on a shared package with my hosted Dreamhost. It failed too often. I emailed on issues upgrading before and they suggested I ...
5
votes
3answers
692 views

WP-CLI Cannot Connect to Database due to Vagrant

I am running the most recent version of WP-CLI on my mac. I do all WordPress development within Vagrant, but would like to run WP-CLI commands in the host machine. I have a domain alias from ...
0
votes
0answers
113 views

All plugins deactivated. What could cause this?

I have an AWS server running four WordPress sites. All plugins have been deactivated on one of the sites and I cannot enable them. When I try enabling them in bulk, or individually, there is no ...
6
votes
1answer
208 views

wp-cli 0.14.1 MySQL error

I just updated to wp-cli 0.14.1 today and once again having a MySQL issue. I'm on Windows, Wampserver, and Cygwin. When I first updated to the last rev (0.14.0) I had a similar problem and wound up ...
2
votes
1answer
284 views

Using wp-cli to Update WP Networks / Multisite from 3.5.1 to 3.8

I've been handed a WP Networks site that is running WP (Networks) 3.5.1 on RHEL 5.8 with about 40 sites attached to it. I see the need to update to 3.8. By background, I'm more familiar with ...
1
vote
1answer
66 views

WP-CLI works on non WP-CLI installed Wordpress instance?

I came across WP-CLI via the tutorial at http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html and was wondering does WP-CLI work on Wordpress instances which were NOT initially installed ...
1
vote
1answer
451 views

wp-cli doesn't find and wordpress installation

I wanted to try wp-cli, downloaded the phar and installed it by moving it to ~/bin which is in my path. Then wp --info works, but maybe shows insufficient information. (e.g. no php path, though it is ...
1
vote
1answer
262 views

BackupBuddy WP CLI Invalid Profile Error

When I try to run a WordPress (3.8) backup of a site using wp-cli 10 alpha (site here) wp --info PHP binary: /usr/local/bin/php-5.3 PHP version: 5.3.5 php.ini used: /etc/php53/php.ini wp-cli ...
3
votes
2answers
462 views

How do I pass an array as an argument to a WP-CLI command?

I want to use WP-CLI to create some new posts with custom taxonomy terms assigned. The challenge is that wp_insert_post's tax_input argument only accepts arrays, which I would have to specify on the ...
2
votes
2answers
1k views

wp-cli displays php notices when display errors off

I am using wp-cli and I am having php notices and errors show up when running wp-export. Some of these warnings and errors are ending up in the output file. How can I force errors to NOT show up. I ...
1
vote
0answers
382 views

Why can't the WP-CLI installer find my php.ini?

I am trying to install WP-CLI on my Mac using the standard installation command (found here: http://wp-cli.org), yet I am receiving the following error message: #!/usr/bin/env php Some ...
4
votes
2answers
627 views

How to use command 'wp post create' in wp-cli properly?

I need to create a single post with title, content and excerpt with this command as it's described in the utility documentation. Could you please show me an example of how to use it? I couldn't find ...
7
votes
4answers
2k views

Is there a drush equivalent for WordPress yet?

I'm working with Drupal on a project right now, and for all it's faults, having a commandline interface like drush to the Drupal framework is a godsend. Is there an equivalent for using Wordpress to ...