Update bench to newer version

I got this notice when running bench command.
INFO: A newer version of bench is available: 5.2.0 → 5.2.1

Then I realized there is no bench update --bench command anymore.

How do I update the bench?
I’m in production so there is no bench-repo directory.
Thank you


You can update bench by pip3 install --upgrade frappe-bench


Where does it take old back up after bench update. I lost some customization in html page.

I had problems with bench restart. Ubuntu 20. It says something about python 2.7. Fortunately I made a snapshot copy before updating bench. I

Related to this update notification.
I have script to run bench command. And the notification caused my code to halt. Because the terminal returned this notification and the command thought it was error.