Registry / devops / frappe-bench

frappe-bench

JSON →
library5.30.0pypypiunverified

Frappe Bench is a command-line interface (CLI) tool designed to manage multi-tenant deployments of Frappe apps and ERPNext. It handles tasks like initializing new benches, creating sites, installing apps, updating, and configuring services like Nginx and Supervisor. The current version is 5.29.1, with frequent patch and minor releases addressing bug fixes and improvements.

pip install frappe-bench
INSTALL
IMPORT
SIG · FRAPPE-BENCH
F
frappe-bench
devopspythonv5.30.0
Install
4.3s avg
Import
Disk
31MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.30.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 28.6MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 4.3s · import 0.000s · 29MB
31MB installed
● package 31MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bench_command
This is primarily a CLI tool. Direct Python imports are not common for end-users; it's typically invoked via the `bench` command in the terminal.
Frappe Bench is designed for command-line usage. While it's a Python package, direct programmatic interaction from user scripts is not its primary use case.

This quickstart guides you through installing Frappe Bench, initializing a new bench environment, getting the Frappe application, creating a new site, and installing Frappe on it. Ensure you have Python 3.10 or higher installed and active before starting.

# 1. Install Frappe Bench (ensure Python >= 3.10 is active) pip install frappe-bench # 2. Initialize a new bench directory bench init frappe-bench --python `which python3` --frappe-branch main # 3. Change into the new bench directory cd frappe-bench # 4. Get an app (e.g., Frappe framework itself) bench get-app frappe https://github.com/frappe/frappe.git --branch main # 5. Create a new site bench new-site site1.local # 6. Install the app on the new site bench --site site1.local install-app frappe # 7. Start the bench in development mode (optional) # bench start
bench --version
Debug
Known issues
breakingFrappe Bench now explicitly requires Python 3.10 or newer. Older Python versions will result in installation failures or runtime errors.
fix
Ensure your environment uses Python 3.10 or a newer version. You can check your Python version with `python3 --version` and switch using tools like `pyenv` if needed.
affects: >=5.25.10
gotchaErrors like `ModuleNotFoundError: No module named 'pkg_resources'` can occur during site setup or app installation due to conflicts with newer `setuptools` versions. Bench itself attempts to mitigate this.
fix
Frappe Bench version 5.29.1 and later limits `setuptools` to versions below 82 to prevent this. If you encounter this with an older Bench version, try updating Bench or manually ensuring `pip install 'setuptools<82'` in your bench's environment.
affects: >=5.29.0
deprecatedThe `ssl_stapling` and `ssl_stapling_verify` directives have been removed from the default Nginx configuration template because Let's Encrypt no longer provides OCSP responses.
fix
After updating Bench, regenerate your Nginx configuration using `bench setup nginx`. If you have custom Nginx configurations, remove these directives to avoid Nginx startup errors.
affects: >=5.28.0
gotchaApp installation may fail if the app's `setup.py` file does not contain a correctly parsed `name` field, leading to an 'App name not found' error.
fix
For custom apps, ensure the `setup.py` file has a valid `name='your_app_name'` definition that can be parsed by AST, not just a regex match.
affects: >=5.27.0
Upgrade
Version history
5.30.0latest on PyPI · released Jun 12, 2026
Audit
Dependencies
PythonrequiredFrappe Bench requires Python 3.10 or newer to function correctly.
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
frappe-bench — pip install frappe-bench · libregistry