bench-commands
БесплатноБез исполняемых скриптовНе проверенFrappe Bench CLI command reference for site management, app management, development, and production operations. Use when running bench commands, managing…
Об этом скилле
Bench CLI Commands Reference
Complete reference for the Frappe Bench command-line interface for managing Frappe/ERPNext installations.
When to Use This Skill
- Running bench commands for development
- Managing Frappe sites
- Installing and updating apps
- Running migrations and builds
- Setting up production environments
- Troubleshooting common issues
Bench Directory Structure
frappe-bench/
├── apps/ # Frappe apps
│ ├── frappe/ # Core framework
│ ├── erpnext/ # ERPNext (if installed)
│ └── my_app/ # Custom apps
├── sites/ # Sites directory
│ ├── common_site_config.json
│ ├── apps.txt # List of installed apps
│ └── my_site.local/ # Individual site
│ ├── site_config.json
│ ├── private/
│ └── public/
├── config/ # Configuration files
├── logs/ # Log files
├── env/ # Python virtual environment
└── node_modules/ # Node.js dependencies
Site Management
Create Site
# Create new site
bench new-site mysite.local
# With specific database
bench new-site mysite.local --db-name mysite_db
# With MariaDB root password
bench new-site mysite.local --mariadb-root-password mypassword
# With admin password
bench new-site mysite.local --admin-password admin123
# From SQL file
bench new-site mysite.local --source_sql /path/to/backup.sql
# Skip creating default user
bench new-site mysite.local --no-mariadb-socket
Use Site
# Set default site
bench use mysite.local
# Run command on specific site
bench --site mysite.local migrate
# Run on all sites
bench --site all migrate
Site Operations
# List all sites
bench list-sites
# Drop site (delete)
bench drop-site mysite.local
# Drop with force
bench drop-site mysite.local --force
# Set site maintenance mode
bench --site mysite.local set-maintenance-mode on
bench --site mysite.local set-maintenance-mode off
# Disable scheduler
bench --site mysite.local disable-scheduler
bench --site mysite.local enable-scheduler
Backup & Restore
# Backup site
bench --site mysite.local backup
# Backup with files
bench --site mysite.local backup --with-files
# Backup all sites
bench --site all backup
# Restore from backup
bench --site mysite.local restore /path/to/backup.sql.gz
# Restore with files
bench --site mysite.local restore /path/to/backup.sql.gz \
--with-private-files /path/to/private.tar \
--with-public-files /path/to/public.tar
App Management
Get Apps
# Get app from GitHub
bench get-app https://github.com/frappe/erpnext
# Get specific branch
bench get-app https://github.com/frappe/erpnext --branch version-14
# Get specific tag
bench get-app https://github.com/frappe/erpnext --tag v14.0.0
# Get from local path
bench get-app /path/to/my_app
# Get and install on all sites
bench get-app erpnext --install-all
Install/Uninstall Apps
# Install app on site
bench --site mysite.local install-app erpnext
# Install app on all sites
bench --site all install-app my_app
# Uninstall app
bench --site mysite.local uninstall-app my_app
# Uninstall with force (removes data)
bench --site mysite.local uninstall-app my_app --yes --force
Create New App
# Create new app
bench new-app my_app
# App will be created in apps/ directory with:
# - my_app/my_app/
# - hooks.py
# - modules.txt
# - patches.txt
# - requirements.txt
Update Apps
# Update all apps
bench update
# Update without migrations
bench update --no-migrations
# Update specific app
bench update --apps erpnext
# Update without pulling
bench update --no-pull
# Update without building assets
bench update --no-build
# Reset to fresh install
bench update --reset
Remove App
# Remove app from bench (not from sites)
bench remove-app my_app
# Remove from site first
bench --site mysite.local uninstall-app my_app
bench remove-app my_app
Development Commands
Start Development Server
# Start development server (web + redis + scheduler)
bench start
# Start with specific workers
bench start --procfile Procfile.dev
# Start only web server
bench serve
# Start on specific port
bench serve --port 8001
Build Assets
# Build assets (JS/CSS)
bench build
# Build specific app
bench build --app my_app
# Build with verbose output
bench build --verbose
# Build production assets
bench build --production
# Build and minify
bench build --make-copy
# Watch for changes
bench watch
Migrate
# Run migrations
bench --site mysite.local migrate
# Migrate all sites
bench --site all migrate
# Migrate specific app
bench --site mysite.local migrate --app my_app
# Skip failing patches
bench --site mysite.local migrate --skip-failing
Clear Cache
# Clear cache
bench --site mysite.local clear-cache
# Clear all cache including redis
bench --site mysit
Установить bench-commands в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bench-commands?
Frappe Bench CLI command reference for site management, app management, development, and production operations. Use when running bench commands, managing sites, migrations, builds, or deployments.
Как установить скилл bench-commands?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bench-commands запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic