Using Token based authentication with REST API

Mainly:
bench switch-to-branch staging
but check this for the next steps:
https://discuss.frappe.io/t/how-to-update-from-v10-to-v11/40944
You might encounter some problems you will find solved in there