~/talk

Creating custom bench command

Talkat Frappe Build 2024 · 2024-03-08..03-09· [developer-experience]
links:none on file
slides:none on file

Shows how to add custom Bench CLI commands for Frappe using Python Click and Frappe’s CLI hooks, covering bench execute and bench console, writing commands with click.command and click.argument, grouping with a calculator group, and using pass_context to grab a site, connect to the site DB, commit and close. Demonstrates a working importer that reads a CSV of ~20,000 applicants, creates Job Opening, Interview Round, Job Application and Interview records, and reports successful batch insertion.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:55Creating first bench command
  3. 4:42Passing arguments in commands
  4. 7:12Grouping commands
  5. 9:00Database operations with commands
  6. 11:55Real-world use case demo
  7. 15:33Q&A and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.