https://github.com/zeel-codder/bench-cli-demo
https://github.com/zeel-codder/bench-cli-demo
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zeel-codder/bench-cli-demo
- Owner: zeel-codder
- License: mit
- Created: 2024-02-23T13:44:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T13:40:04.000Z (over 2 years ago)
- Last Synced: 2024-03-06T14:49:34.041Z (over 2 years ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
## Bench CLI Demo
This app demonstrates how to create custom commands in Bench.
## Install the App
1. Create the Frappe site with [Frappe Manager (FM)](https://github.com/rtCamp/Frappe-Manager/):
```bash
fm create bench-cli-demo --frappe-branch version-15 --apps erpnext:version-15 --apps hrms:version-15
```
2. Install the app on your site:
```bash
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
```
3. Test Commands:
```bash
bench sum 20 2
bench insert-todo
```
Note: You can set the default site with the following command:
```bash
bench use bench-cli-demo.localhost
```
## Setup the App for Importing Job Applicant Data
1. Download any CSV data from [here](https://drive.google.com/drive/folders/1eYJ6KXJf_3m3usGwYXb9_4wal7RCZr3x?usp=sharing) and move the file to the `frappe-bench` folder.
2. Run the import command:
```bash
bench rt-import import-job-applicant {file_path}
```
## License
MIT