How did I install WP-CLI to Ubuntu?

Step 1

cd /usr/local/bin

Step 2

curl -o wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Step 3

chmod +x wp

Result

wp --info

2023-12-27--04-02-00