WP CLI Upgrade to latest version
The version of WP CLI is very far behind on WordPress deployments. The version that is being deployed is 0.24.1 while the latest is 2.3.0.
Currently, we are unable to upgrade it because root access is not provided and the /usr/local/bin/wp file cannot be edited.
If this cannot be done, a better solution would be to grant access to allow editing of .bashrc file so we can map our own custom wp-cli file instead of using the default one.
Very good! Thank you!
Stiri, Stiri pe surse, stirile zilei, revista presei, stiri romania, stiri externe, stiri pe surse, sarbatori religioase, stiri de ultima ora, monitorizare presa
Refik Bas commented
THANK YOU, TOM!
Thank you for your post. I have read through some similar topics! However, your article gave me a very special impression, unlike other articles. I hope you continue to have valuable posts like this or more to share with everyone! https://shell-shockers.online
As a follow up, this is how we can upgrade in the meantime:
1. Login via SSH.
2. Create a .bash_alias file in the home directory: `touch .bash_aliases`
3. Insert an alias for "wp": `alias wp="/home/master/wp-cli.phar "'
4. Make the file executable: 'chmod +x wp-cli.phar'
5. Reload bash: `source ~/.bashrc`
6. Navigate to applications/[yourappid]/public_html
7. Test by running a version check: `wp --version' (should result in 2.3 or something higher)
Hope this helps.