openaec-foundation/frappe_claude_skill_package/frappe-ops-bench
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
Checking that the SKILL.md file is still in the repository.
Use when running bench commands, managing sites, configuring multi-tenancy, or setting up domains. Prevents misconfigured bench environments, broken site routing, and DNS mismatches. Covers bench CLI commands, site creation, bench init, multi-tenancy setup, DNS-based routing, common-site-config. Keywords: bench, site, multi-tenancy, domains, bench init, bench new-site, bench setup, common_site_config, bench command not working, site setup, multi-tenant, domain routing, new site..
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-ops-benchSKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-ops-bench.
Bench CLI Complete Reference
Complete bench CLI reference for site management, app lifecycle, configuration, and multi-tenancy.
Version: v14/v15/v16
Quick Reference: Essential Commands
| Task | Command | |
|---|---|---|
| Create bench | bench init myproject --frappe-branch version-15 | |
| Create site | bench new-site mysite.localhost --admin-password admin | |
| Set default site | bench use mysite.localhost | |
| Get app | bench get-app erpnext --branch version-15 | |
| Install app | bench --site mysite install-app erpnext | |
| Start dev server | bench start | |
| Run migrations | bench --site mysite migrate | |
| Build assets | bench build --app myapp | |
| Backup site | bench --site mysite backup | |
| Restore backup | bench --site mysite restore /path/to/backup.sql.gz | |
| Open console | bench --site mysite console | |
| Open DB shell | bench --site mysite mariadb | |
| Check scheduler | bench doctor | |
| View pending jobs | bench show-pending-jobs | |
| Update everything | bench update | |
| Drop site | bench drop-site mysite --force |
Workflow 1: Creating a New Bench
What `bench init` creates:
Critical Rules
- ALWAYS specify
--frappe-branchto pin Frappe version - ALWAYS run commands from inside the bench directory
- NEVER run bench commands as root — use a dedicated frappe user
Workflow 2: Site Management
Creating Sites
Setting Default Site
Dropping a Site
Site Directory Structure
Workflow 3: App Management
Critical Rules
- ALWAYS
get-appbeforeinstall-app— get downloads, install activates - ALWAYS backup before
uninstall-app— it deletes app-related data - NEVER manually delete app folders — use
bench remove-app
Workflow 4: bench update: What It Does
`bench update` executes these steps in order:
- Backup all sites
- Pull latest code for all apps (
git pull) - Install Python/Node requirements
- Build static assets (
bench build) - Run migrations on all sites (
bench migrate) - Restart bench processes
Critical Rules
- ALWAYS run
bench updatein a screen/tmux session — it takes time - NEVER use
--resetin production without understanding it doesgit reset --hard - ALWAYS test updates on staging first
Workflow 5: bench migrate
What `bench migrate` does:
- Runs schema sync (DocType changes → database)
- Runs patches (data migrations)
- Rebuilds search index
- Syncs translations
- Rebuilds Dashboard cache
When to Migrate
- After
bench update(done automatically) - After changing hooks.py
- After adding/modifying DocTypes
- After pulling code changes
- NEVER skip migrate after code changes — leads to schema mismatches
Workflow 6: bench build
When to Build
- After changing JS/CSS files
- After
bench get-app(done automatically) - After modifying
package.json - ALWAYS build after modifying client-side assets
Workflow 7: Console and Database Access
Workflow 8: Backup and Restore
Critical Rules
- ALWAYS backup before
bench update,uninstall-app, ordrop-site - Backups older than 24 hours auto-deleted by default — configure
keep_backups_for_hours - ALWAYS test restore on a staging site before relying on a backup
Workflow 9: Scheduler and Background Jobs
Workflow 10: Multi-Tenancy
DNS-Based Routing (Recommended)
Requests are routed by matching the Host header to site names.
Port-Based Routing (Alternative)
Custom Domain Mapping
Configuration: common_site_config.json
Located at sites/common_site_config.json — applies to ALL sites.
Essential Keys
| Key | Default | Purpose | |
|---|---|---|---|
background_workers | 1 | Number of background job workers | |
developer_mode | false | Auto-sync DocType changes to files | |
dns_multitenant | false | Enable DNS-based multi-tenancy | |
gunicorn_workers | 2 | Web server worker count (min: 2) | |
maintenance_mode | 0 | Take all sites offline | |
pause_scheduler | 0 | Pause job scheduler | |
serve_default_site | — | Default site when host not matched | |
server_script_enabled | false | Enable Server Scripts | |
scheduler_tick_interval | 60 | Seconds between scheduler checks | |
webserver_port | 8000 | Development server port | |
socketio_port | 9000 | Socket.IO port | |
live_reload | false | Auto-reload on asset rebuild |
Redis Configuration
| Key | Default | |
|---|---|---|
redis_cache | redis://localhost:13000 | |
redis_queue | redis://localhost:11000 | |
redis_socketio | redis://localhost:13000 |
Setting Config Values
Configuration: site_config.json
Per-site config at sites/<sitename>/site_config.json.
Mandatory Keys
| Key | Purpose | |
|---|---|---|
db_type | mariadb or postgres | |
db_name | Database name | |
db_password | Database password |
Important Optional Keys
| Key | Purpose | |
|---|---|---|
admin_password | Administrator initial password | |
host_name | Full site URL (with protocol) | |
install_apps | Apps to install on restore/reinstall | |
allow_cors | CORS origins ("*", URL, or array) | |
max_file_size | Upload limit (default: 10MB) | |
mute_emails | Disable all outgoing email | |
logging | Debug level (0-2, level 2 shows SQL queries) |
Environment Variable Overrides
Environment variables override config files. Key mappings: FRAPPE_REDIS_QUEUE, FRAPPE_REDIS_CACHE, FRAPPE_DB_HOST, FRAPPE_DB_PORT, FRAPPE_DB_NAME, FRAPPE_DB_PASSWORD.
Priority: Environment Variable > site_config.json > common_site_config.json > Default
Production Setup
Version Differences
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source/ops/frappe-ops-bench/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 26
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openaec-foundation/frappe_claude_skill_package/frappe-ops-bench)