- 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