Is new-module is deprecated via bench

How to create domains in any custom app like in erpnext we have multiple modules like buying, selling etc.
when i run bench new-module module-name but it throws an error.