Questions tagged [wp-cli]

wp-cli is a command line interface for WordPress.

wp-cli is a command line interface for WordPress.

You can easily install and update WordPress core, plugins, themes, and more. There's an active development community and additional commands are added regularly.

wp-cli is similar to drush, a tool for Drupal.

Document Source: http://codex.wordpress.org/wp-cli

197 questions
0
votes
1 answer

Error establishing database connection using wp-cli and xampp

I've got everything to work with WP-CLI on Windows running XAMPP. Or so I thought. When I try to execute the following command: wp rewrite structure '/%postname%/' I get the following error: Error: Error establishing a database connection. This…
diamondfish
  • 133
  • 1
  • 9
0
votes
1 answer

Cannot login with wp-cli generated user wordpress behind reverse proxy

Hello fellows I have made a custom wordpress image located there: https://github.com/ellakcy/wordpressWithPlugins And on entrypoint script I am using wp-cli in order to generate a custom user in order to preinstall plugins. But I cannot login to the…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
0
votes
1 answer

PHP CLI - Piping and prompting at the same time?

I have two php cli scripts. The first one pipes data into the second one. I want the second one to prompt the user for a confirmation. Is this possible? I'm using wordpress' php-cli-tools, but my problem seem to be applicable to php in general, from…
c-a
  • 5,928
  • 1
  • 17
  • 12
0
votes
2 answers

Error 0D0C50A1, "unknown message digest algorithm" when installing WP packages

I'm trying to run this command in WP-CLI: wp package install wp-cli/scaffold-package-command, and I'm getting this error: Error messages: error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm error:14090086:SSL…
IAmJulianAcosta
  • 1,082
  • 2
  • 14
  • 30
0
votes
1 answer

missing mysql extension in MAMP

I'm just shifting from wamp to mamp on windows. Through mamp every thing is working perfectly (WordPress or PHP Projects). 1) In cmd when I work with wp-cli.phar file, it's give me the following error your php installation appears to be missing the…
A Wahab
  • 41
  • 1
  • 8
0
votes
3 answers

Wordpress WP-CLI search-replace syntax for URLs

I want to change this sentence: To this: https://www.youtu.be/4zH9Zca1vRM I can do it for every iframe of youtube video in…
aitor
  • 2,281
  • 3
  • 22
  • 44
0
votes
1 answer

How do I register a newly written WP-CLI command locally?

I've followed the Commands Cookbook. And I've written a function, and called WP_CLI::add_command but I don't see how to make that command available. I tried $ wp --debug eval-file getcsv.php update-recommended and get this output: Debug: No…
ssteinerX
  • 191
  • 1
  • 6
0
votes
1 answer

Issue wp post meta add

Using this line: wp post meta add 525 _price 150.00 --debug Hangs with the following message: Debug: Loaded WordPress (2.308s) Debug: Running command: post meta add (2.308s) Any recommendations?
StevenV
  • 106
  • 2
  • 9
0
votes
1 answer

Getting wp-cli to work on windows

I'm trying to get wp cli working on my MAMP setup but the issue i have when browsing to a WordPress setup and running for instance wp -v i get this notice: Your PHP installation appears to be missing the MySQL extension which is require d by…
misulicus
  • 437
  • 2
  • 6
  • 16
0
votes
1 answer

How to print SQL variable to UNIX bash command line

Want to print the value of a variable I create. SET @count = (SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'wordpress'); PRINT @count + 1; The above code is saved into a file called count-new.sql. I execute the above…
0
votes
1 answer

Invalid JSON with json_encode and shell_exec

I'm using Symfony's console component to write some command line tools, one of which uses WP-CLI to set up a WordPress site. Specifically using wp option update I'm running into issues with both JSON and quotes. For example, running something…
Ethan C
  • 1,408
  • 1
  • 14
  • 26
0
votes
0 answers

Wordpress cron not firing based on time range

I am trying to run wp_cron event that fires based on a time range. But I can set an interval that is less than a certain period of time but not in a range. The scenario is if the $wp_cron_start is set to a time before noon, and if $wp_cron_start is…
Amen Ra
  • 2,843
  • 8
  • 47
  • 85
0
votes
4 answers

wp-cli search-replace command not searching and replacing

I'm using wp-cli tool for searching and replacing the site's url to a new url. I'm executing this command in command line in the directory of the wordpress installation: C:\xampp\htdocs\somewebsite>wp search-replace 'somewebsite.com'…
dave
  • 14,991
  • 26
  • 76
  • 110
-1
votes
1 answer

How to add gravity forms CLI support in WP-CLI?

I am trying to access gravity forms 'gf' commands with WP-CLI in terminal. so I want execute this command wp gf check-update I am getting: 'gf' is not a registered wp command. See 'wp help' for available commands. I am trying to help myself from…
infomasud
  • 2,263
  • 1
  • 18
  • 12
-1
votes
1 answer

Is it possible to automate installate wordpress with wp-cli?

Is it possible to go through this sites without clicking but with shell commands (i mean wp-cli):
Marcin Warzybok
  • 357
  • 4
  • 16
1 2 3
13
14