As always, you should update themes first, then plugins, then the WordPress core.
Operations affecting WordPress’ core use the command wp core.
Checking the Version
To get the currently installed version:
wp core version
To find out the latest available version:
wp core check-update
Updating the Core
To update to the latest version:
wp core update
or, to specify the version, you can use:
wp core update --version=X.X.X
Note: After updating the core, you need to check for a database update!
Database Update
To update the WordPress database:
wp core update-db
Confirm the successful update by rechecking the version!