WP-CLI is the official command-line tool for WordPress.
Key Commands
wp core update
wp plugin update --all
wp db export backup.sql
wp search-replace 'http://old.com' 'https://new.com' --all-tables
💡
wp search-replace safely handles PHP serialized data.