Questions tagged [wp-cli]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 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.
Welcher's user avatar
  • 3,548
3 votes
2 answers
2k views

Using WP CLI to set options in WP Multisite

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, ...
Paul Osborne's user avatar
28 votes
6 answers
13k views

Running WP Cron on multisite the right way

I have WordPress Multisite with several sites. I set up DISABLE_WP_CRON to true in my wp-config.php. If we set up cron task with wget or curl we have 30 sec rule to execute PHP script. It's so small ...
Kolya Korobochkin's user avatar
2 votes
1 answer
1k 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 ...
Andrew's user avatar
  • 419
5 votes
1 answer
401 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 ...
grappler's user avatar
  • 825
2 votes
1 answer
1k 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 ...
Rahul V Sharma's user avatar
4 votes
1 answer
2k 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 ...
Wowzaaa's user avatar
  • 143
7 votes
1 answer
1k 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 ...
No3x's user avatar
  • 193
4 votes
4 answers
5k 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 ...
jeff's user avatar
  • 41
1 vote
1 answer
293 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 ...
rhand's user avatar
  • 352
7 votes
4 answers
3k 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 "dev....
Zach Russell's user avatar
  • 1,043
0 votes
0 answers
2k 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 ...
paradroid's user avatar
  • 195
8 votes
1 answer
681 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 ...
user1640896's user avatar
3 votes
1 answer
2k 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 ...
Rick's user avatar
  • 151
4 votes
1 answer
202 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 ...
p4guru's user avatar
  • 188
6 votes
1 answer
10k 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 ...
step21's user avatar
  • 63
1 vote
1 answer
577 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 ...
rhand's user avatar
  • 352
4 votes
2 answers
3k 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 ...
JP Lew's user avatar
  • 274
9 votes
4 answers
9k 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 ...
Chris Muench's user avatar
-1 votes
1 answer
2k 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 ...
JP Lew's user avatar
  • 274
5 votes
3 answers
5k 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 ...
Sergei Basharov's user avatar
10 votes
4 answers
3k views

Is there a drush equivalent for WordPress yet?

I'm working with Drupal on a project right now, and for all its faults, having a command line interface like drush to the Drupal framework is a godsend. Is there an equivalent for using WordPress to ...
Chris Adams's user avatar

1
4 5 6 7
8