How can I get latest pull in erpnext

ERPNext: v14.2.1 (version-14)
Frappe Framework: v14.9.0 (version-14)

I’m on the above version of erpnext in the system and I want pull latest changes of bench, frappe and erpnext on my server.

How can I do that properly without facing issue, because I’ll use it in production.
Please guide me
Thank you…

bench update

This pulls changes for the bench and apps installed, applies patches, etc …

To update the bench CLI use

sudo -H pip3 install --upgrade frappe-bench

Hope this helps.