“WorePress Core Version Check/Update” with wp-cli.phar
WP version check/update using wp-cli.phar
WP-CLI is a utility written in PHAR that can manage WordPress with command. Since management tasks such as plug-in management and WordPress upgrades can be executed by command, automated management is possible, and it has the advantage of being able to easily operate multiple WordPress sites.
Update WP version – Step by Step
Create Tmp Folder
mkdir tmp
cd tmp
Download program “curl”
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
Info check using wp command
php wp-cli.phar –info
Change Permission to execute
chmod +x wp-cli.phar
Move Command to execution folder
sudo mv wp-cli.phar /usr/local/bin/wp
wp command check
wp –info
wp cli update
sudo wp cli update