ERPNext is an Enterprise Resource Planning (ERP) suite that leverages the power and flexibility of open-source technologies. It excels at manageing core business process such as finance, sales, HR, Manufacturing, Purchases, Services, Helpdesk, and more. Among the benefits of implementing a system like ERPNext are:
- Better productivity by automating repetivity business process
- Improved IT efficiency by sharing a database for all departments within the company
- Better decising-making thanks to an integral vision of how business units relate to each other
ERPNext is based on Frappe framework, a full-stack web application written in Python that takes full advantage of the NodeJS and JavaScript runtime environment and uses MariaDB as its database backend, One of the best advantages of Frappe-based application is the bench command-line utility. The bench CLI saves administrators time by automating tasks such as installing, updating, configuring, and managing multiple Frappe/ERPNext sites.
Note: here is the Bench commands cheatsheet https://frappeframework.com/docs/user/en/bench/resources/bench-commands-cheatsheet
bench setup add-domain mydomain.com --site [site]
bench config dns_multitenant on
bench setup nginx
sudo service nginx restart
bench switch-to-branch version-13 frappe erpnext --upgrade
sudo service nginx restart
sudo supervisorctl reload
bench update --patch
bench build
bench set-nginx-port site1.local 8080
bench setup nginx
sudo service nginx reload
bench new-site site1.local
bench --site site1.local install-app erpnext
bench version
bench --site site1.local list-apps
bench get-app frappe_helper https://github.com/quantumbitcore/frappe_helper.git
bench --site site1.local install-app frappe_helper
To backup specific site
bench --site yourwebsite.com backup --with-files
To restore site
bench --site site1.local --force restore /path/to/file/site1.local-database.sql.gz --with-private-files /path/to/file/site1.local-private-files.tar --with-public-files /path/to/file/site1.local-files.tar
bench --site site1.local --force restore /path/to/file/site1.local.sql.gz
bench --site site1.local migrate
bench get-app ksa_vat https://github.com/ahmadpak/ksa_vat.git --branch version-13
bench --site site1.local install-app ksa_vat
bench --site site1.local migrate
bench --site site1.local set-config maintenance_mode 0
bench --site site1.local show-config
bench update --reset
bench --site site1.example.com migrate
bench --site site2.example.com migrate
bench switch-to-branch version-14 --upgrade
bench restart
bench update --reset --pull --build --patch --requirements --no-backup --force
bench build --production