This app demonstrates how to create custom commands in Bench.
- Create the Frappe site with Frappe Manager (FM):
fm create bench-cli-demo --frappe-branch version-15 --apps erpnext:version-15 --apps hrms:version-15
- Install the app on your site:
fm shell bench-cli-demo
bench get-app https://github.com/zeel-codder/bench-cli-demo.git
bench --site {site-name} install-app bench_cli_demo
- Test Commands:
bench sum 20 2
bench insert-todo
Note: You can set the default site with the following command:
bench use bench-cli-demo.localhost
-
Download any CSV data from here and move the file to the
frappe-bench
folder. -
Run the import command:
bench rt-import import-job-applicant {file_path}
MIT