To update WordPress through the site admin panel, do the following:
To update WordPress using WP-CLI, do the following:
wp core download --skip-content --force --path=/home/name_account/example.com/www/
wpindicate aliascreated during the installation in step 5, or the path to the installed file
name_accountsubstitute hosting account name, in which the actions are performed.
example.com/wwwspecify the path to the files of the required site.
skip-contentindicates that the download of standard themes and plugins is skipped. If you also need to install them, remove it from the command.
Success: WordPress downloaded.