In order for the command to work you need to be in the frappe-bench directory before you execute the command. I have also found that how you structure the command depends on how you installed the system you are using:
If you used the bench setup add-domain command to add the fully qualified domain name to your site then you will need to use this command to all a lets encrypt cert:
i tried to run this from frappe-bench folder but It is not working at all in my latest ERPNext implementation. It shows sudo: bench: command not found. I’ve tried run without sudo, but showing error superuser privileges required for this command
@bkm I’ve installed it in gcloud only. I was able run bench command with out sudo. That is how i’ve done erpnext implementation. But in this case it is asking for superuser previlage for running this command. if i run the command as root user, it shows bench command error. Why it is like that ? Any solution much appreciated as i am stuck with my work here.