Bulk update published posts date randomly using wp-cli?
Bulk update published posts date randomly using wp-cli?
Bulk update published posts date randomly using wp-cli?
Since: upgrade endpoint in question doesn’t seem to be behind login wall no user action is required other than visiting it I would imagine requesting the suggested URL with some CLI tool for HTTP requests (curl and wget are commonly available) should accomplish upgrade.
wp-cli is not a development tool, it is a server admin tool, as such all the scaffold stuff there is…. for lack of better word, unneeded bloat. It is unlikely to reflect best practice, especially if your copy is old. In the specific case of page templates, there is really nothing worth “scaffolding” the easiest … Read more
Unix and Unix-like operating systems (like Linux) use different line endings in their text files. The format of Windows and Unix text files differs slightly. In Windows, lines end with both the line feed and carriage return ASCII characters, but Unix uses only a line feed. As a consequence, some Windows applications will not show … Read more
I forget exactly if the plugin slug is a reliable method to get the url, it might be in most cases but not all due to how plugins are named. You can query the api @wordpress.org for the plugins xml file which also contains the download link. For example: $plugin_slug = ‘akismet’; $return_plugin_info = “http://api.wordpress.org/plugins/info/1.0/$plugin_slug.xml” … Read more
Using WP CLI, you can record WordPress version using: wp core version –extra –path=”$SITEPATH” > wp-report.txt and append a list of plugins (with status and version): wp plugin list –path=”$SITEPATH” >> wp-report.txt and append a list of themes (with status and version) using: wp theme list –path=”$SITEPATH” >> wp-report.txt Further reading: https://developer.wordpress.org/cli/commands/core/version/ https://developer.wordpress.org/cli/commands/plugin/list/ https://developer.wordpress.org/cli/commands/theme/list/
You should not use this technique to change the URL of your site : WordPress sometimes stores URLs in serialized strings. You find/replace will corrupt the serialized data and discard the whole content. You can use interconnect/it search and replace tool to change the domain without any risk. This tool even allow you to run … Read more
This may be helpful. http://wp-cli.org/blog/how-wp-cli-loads-wordpress.html This is what actually wp-cli tries. $_SERVER[‘HTTP_HOST’] = ‘example.com’; define(‘WP_ADMIN’, true); require(‘wordpress/wp-load.php’); You must have these WordPress files files and the database. So the answer is NO unless you create hack. I am not aware of any. If you pass: $ wp make:a.txt –skip-wordpress Error: This does not seem to … Read more
Other than WP-CLI, is there a way to install WordPress via the command-line?
Have a look at your PHP errors. I’ve seen WP CLI fail like that because PHP fatals out.