ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Issue when setting up production



New to bench/ erpnext here. I’m trying to setup bench for production using the official guide here.

But when I run the command sudo bench setup production inside the bench folder I get the error “command not found”. Other bench commands work fine like “bench start”, “bench --version” etc

I have installed bench and erpnext using the Hitchhiker’s guide to installing Frappe on linux

Any pointers as to what am I doing wrong?


have you try sudo bench setup production sitename


Just tried, same issue.


As which user are you running the command?
and in which subdir?


I’m running the command with the user I use to login to the OS, same I used to install everything. The subdir is frappe-bench (I used the default example name from the guide I linked)