install wp-cli and make it usable with "wp" command

cd /tmp/
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info

Update core, plugins, themes, language

wp core update --allow-root && wp theme update --allow-root --all && wp plugin update --allow-root --all && wp language core update --allow-root

Replace http by https in database (dry-run = test mode, remove it to make it real)

wp search-replace 'http://ndd.ext' 'https://ndd.ext' --all-tables-with-prefix --allow-root --all-tables --dry-run
wp search-replace 'https%3A%2F%2Fdev' 'https%3A%2F%2Fwww' --all-tables-with-prefix --allow-root --all-tables --dry-run
wp search-replace 'https:\/\/dev' 'https:\/\/www' --all-tables-with-prefix --allow-root --all-tables --dry-run

Find keyword in files (Not wp cli command but necessary for url replacement)

grep -iRl "//dev\.blabla" ./