Bench is the command-line interface for managing Frappe Framework sites and applications. This page covers the core bench commands for general operations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/frappe/frappe/llms.txt
Use this file to discover all available pages before exploring further.
Version information
Display version information for all installed apps.-f, --format- Output format:plain,table,json, orlegacy(default:plain)
List sites
List all sites in the current bench.--json- Output in JSON format
Console access
Start an interactive IPython console for a site.--autoreload- Automatically reload code changes
Jupyter notebook
Start a Jupyter notebook server for interactive development.jupyter_notebooks folder in your site directory and starts the Jupyter server.
Example initialization code:
Execute Python methods
Execute a Python method from the command line.--args- JSON string of positional arguments--kwargs- JSON string of keyword arguments--profile- Profile the execution
Make requests
Run HTTP requests as an admin user.--args- Arguments like?cmd=test&key=valueor/api/request/method?..--path- Path to request JSON file
Configuration management
Insert or update values in site_config.json.-g, --global- Set value in bench config instead of site config-p, --parse- Evaluate value as a Python object
View configuration
Display site configuration.-f, --format- Output format:textorjson(default:text)
Build assets
Compile JavaScript and CSS source files.--app- Build assets for a specific app--apps- Build assets for multiple apps (comma-separated)--hard-link- Copy files instead of symlinking--production- Build in production mode (minified)--verbose- Verbose output--force- Force build instead of downloading pre-built assets--save-metafiles- Save esbuild metafiles for bundle analysis
Watch assets
Watch and compile files as they change (development mode).--apps- Watch specific apps (comma-separated)
Clear cache
Clear cache, doctype cache, and defaults.Clear website cache
Clear only the website cache.Serve development server
Start the Frappe development web server.--port- Port number (default: 8000)--profile- Enable profiling--proxy- Run behind a proxy (e.g., ngrok)--noreload- Disable auto-reload--nothreading- Disable threading--with-coverage- Enable code coverage
Create boilerplate app
Create a new Frappe app with boilerplate code.--no-git- Don’t initialize git repository