WP CLI not importing media files

wp import something.xml The possible problem with this solution is when the original domain is not available from the web server you are on. Try to ping the domain name from the AWS LightSail. You know for the wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xm‌l, there you have images like wpthemetestdata.files.wordpress.com/2010/08/manhattansummer.‌​jpg, but when the domain wpthemetestdata.files.wordpress.com is not available anymore the … Read more

Reset generated wp-config.php with wp-cli

How can I solve this and besides, Can someone explain me where this temporary config file is located? This will be generated in the WordPress root folder, the same from where you call the wp-cli. Keep in mind you need to provide the correct username password and database name, else it will error. If you … Read more

Error updating WP-CLI

First of all, locate your installation of WP-CLI. If you’re using Composer you can list all globally installed packages on the command line like this: composer global show Then update the WP-CLI composer package: composer global update wp-cli/wp-cli If you’re using Homebrew, you can list all installed packages on the command line like this: brew … Read more

How to create a network using a command line script?

Since you’re already using WP-CLI, I recommend you to use the wp core multisite-install command to set up your network installation. When you check out the documentation you’ll see that it’s pretty straightforward. Here’s the example from the docs: $ wp core multisite-install –title=”Welcome to the WordPress” \ > –admin_user=”admin” –admin_password=”password” \ > –admin_email=”[email protected]” Single … Read more

How to use wp db export and import together?

Seems you are mixing wp db import with wp import. wp import indeed expects an WordPress Extended RSS (WXR) file as input. Whereas wp db import doesn’t know of an –authors option. Just use wp db import ccv3-2018-07-12-4e523fb.sql and everything should be fine.

Lock User and Enforce Password change via wp-cli

Would wp user reset-password {username} work for your purposes? The docs are a little thin, but I gather it sets the password for {username} to a random string, then emails that string to the email address on record for {username}.