Install a specific WordPress core version
roll back wordpress update | install older wordpress version | downgrade wordpress wp cli | wp-cli | core | update | rollbackCaution: This command changes the system. Understand what it does before you run it.
wp core update --version=6.6.2 --force --path=/var/www/vhosts/example.com/httpdocsDownloads the given version and replaces the core files, leaving wp-content and wp-config.php untouched. --force also allows a downgrade. Useful when an update breaks a plugin or theme and the old state has to be restored quickly.
Note: The database is not rolled back during a downgrade. Create a backup with wp db export first.
Also searched as
- roll back wordpress update
- install older wordpress version
- downgrade wordpress wp cli