Update WordPress core including the database
update wordpress from command line | upgrade wordpress to latest version | update wordpress without dashboard | wp-cli | wordpress | updateCaution: This command changes the system. Understand what it does before you run it.
wp core update --path=/var/www/vhosts/example.com/httpdocs && wp core update-db --path=/var/www/vhosts/example.com/httpdocsDownloads the current WordPress version, replaces the core files and then updates the database schema. Handy when the dashboard is unreachable or when many installations need to be updated by script. Check the current version with wp core version and available updates with wp core check-update beforehand.
Note: Create a database backup with wp db export first. With --minor, only maintenance releases are installed.
Also searched as
- update wordpress from command line
- upgrade wordpress to latest version
- update wordpress without dashboard