Bench new site got unexpected extra argument

Posted July 17, 2021 224 views

Hi, I tried following your guide to install erpnext on Ubuntu 20. However, it’s failing on this step -

bench new-site your_domain --admin-password 'erpnext_admin_password' --mariadb-root-username sammy --mariadb-root-password 'mariadb_password'


Usage: bench  new-site [OPTIONS] SITE
Try "bench  new-site --help" for help.
Error: Got unexpected extra argument (sammy)

Any ideas why this might be the case?

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


This seems to be the correct syntax, according to the official documentation here:

Did the bench init go through successfully from the previous step?