Step 1
cd /usr/local/bin
Step 2
curl -o wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- github.com/wp-cli/handbook/blob/v2.7.1/installing.md#recommended-installation
- make.wordpress.org/cli/handbook/guides/installing/#recommended-installation
- github.com/wp-cli/wp-cli/tree/v2.9.0?tab=readme-ov-file#installing
Step 3
chmod +x wp
- github.com/wp-cli/handbook/blob/v2.7.1/installing.md#recommended-installation
- make.wordpress.org/cli/handbook/guides/installing/#recommended-installation
- github.com/wp-cli/wp-cli/tree/v2.9.0?tab=readme-ov-file#installing
Result
wp --info