Frappe Bench

5.29.1 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

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

view raw JSON →