WP WC CLI – WooCommerce setup store with wp-cli [closed]
WP WC CLI – WooCommerce setup store with wp-cli [closed]
WP WC CLI – WooCommerce setup store with wp-cli [closed]
What could cause WP-CLI search-replace to not replace all instances of a string?
Can’t install local plugin (zip) with wp-cli [closed]
LOCAL For local aliases, it works best to define your path ahead of time in the config.yml. Then keep the variables pretty clean by only specifying the url to target the site. Sorting the output helps if you have a long list of sites since the default is by blog id (which we’re not using). … Read more
Edit your .bash_profile and modify the PATH with : export PATH=/opt/plesk/php/7.2/bin:$PATH then reload with : source ~/.bash_profile More info here.
You need to use the –url flag when you have a multisite. wp-cli –debug –url=www.example.com or wp theme list –url=www.example.com
I didn’t find any wp-cli utility either, but readline php function works just fine. PHPStorm warns me that ext-readline must be enabled in order to use it, but it seems like something that is always enabled in cli environment
THE SHORT Export sudo mysqldump -u root -pPASSWORD DBNAME > filename.sql Import wp db import filename.sql THE LONG So this turns out to be very painless. The server dump is exactly what WP-CLI needs to import. REMOTE sudo mkdir backup Make a directory for the file. sudo chown -f -R ec2-user:group backup Set permissions to … Read more
Try using the 10up/MU-Migration command: https://github.com/10up/MU-Migration
Managed to figure this out, you can pass –meta_key and –meta_compare arguments like this… wp post list –fields=ID,mycustomfield –meta_key=mycustomfield ‘–meta_compare=active’ ID | mycustomfield ———————– 1 | active 2 | active 4 | active