Skip to content

Instantly share code, notes, and snippets.

@lukecav
Last active February 20, 2024 09:41
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lukecav/3191b35783670e1df263ea0e92f379c8 to your computer and use it in GitHub Desktop.
Save lukecav/3191b35783670e1df263ea0e92f379c8 to your computer and use it in GitHub Desktop.
WP-CLI commands to update WordPress core to version 6.4.3
# Delete the core updater lock option
wp option delete core_updater.lock
# Update WordPress to 6.4.3 forcefully
wp core update --version=6.4.3 --force
# Display the WordPress version
wp core version
# Checks for WordPress updates via Version Check API.
wp core check-update
# Update the WordPress database
wp core update-db
# Update multiple default themes from wordpress.org
wp theme update twentytwenty twentytwentyone twentytwentytwo twentytwentythree
# Delete older default themes
wp theme delete twentysixteen twentyseventeen twentynineteen
# Update all themes
wp theme update --all
# Install the new default theme
wp theme install twentytwentyone
# Deactivate Gutenberg plugin
wp plugin deactivate gutenberg
# Delete Gutenberg plugin
wp plugin delete gutenberg
# Delete Hello Dolly plugin
wp plugin delete hello-dolly
# Update Akismet to the latest version from wordpress.org
wp plugin update akismet
# Update all plugins from wordpress.org
wp plugin update --all
# Install the latest version of Blockeditor Fullscreen Mode Control from wordpress.org and activate
wp plugin install blockeditor-fullscreen-mode-control --activate
# Install the latest version of Disable Gutenberg from wordpress.org and activate
wp plugin install disable-gutenberg --activate