The bench is a command-line utility that helps you to install apps, manage multiple sites and update Frappe / ERPNext apps on */nix (CentOS, Debian, Ubuntu, etc) for development and production. Bench will also create nginx and supervisor config files, setup backups and much more.
If you are using on a VPS make sure it has >= 1Gb of RAM or has swap setup properly.
To do this install, you must have basic information on how Linux works and should be able to use the command-line. If you are looking easier ways to get started and evaluate ERPNext, download the Virtual Machine or take a free trial on erpnext.com.
If you have questions, please ask them on the forum.
You will need a computer/server. Options include:
- A Normal Computer/VPS/Baremetal Server: This is strongly recommended. Frappe/ERPNext installs properly and works well on these
- A Raspberry Pi, SAN Appliance, Network Router, Gaming Console, etc.: Although you may be able to install Frappe/ERPNext on specialized hardware, it is unlikely to work well and will be difficult for us to support. Strongly consider using a normal computer/VPS/baremetal server instead. We do not support specialized hardware.
- A Toaster, Car, Firearm, Thermostat, etc.: Yes, many modern devices now have embedded computing capability. We live in interesting times. However, you should not install Frappe/ERPNext on these devices. Instead, install it on a normal computer/VPS/baremetal server. We do not support installing on noncomputing devices.
To install the Frappe/ERPNext server software, you will need an operating system on your normal computer which is not Windows. Note that the command line interface does work on Windows, and you can use Frappe/ERPNext from any operating system with a web browser. However, the server software does not run on Windows. It does run on other operating systems, so choose one of these instead:
- Linux: Debian, Ubuntu, CentOS are the preferred distros and are well tested. Arch Linux can also be used
- Mac OS X
1. Install Pre-requisites
- Python 2.7 [Python3.5+ also supported, but not recommended for production]
- MariaDB 10+
- Nginx (for production)
- cron (crontab is required)
- wkhtmltopdf with patched Qt (version 0.12.3) (for pdf generation)
2. Install Bench
Install bench as a non root user,
git clone https://github.com/frappe/bench bench-repo pip install --user -e bench-repo
Note: Please do not remove the bench directory the above commands will create
Create a new bench
The init command will create a bench directory with frappe framework installed. It will be setup for periodic backups and auto updates once a day.
bench init frappe-bench && cd frappe-bench
Add a site
Frappe apps are run by frappe sites and you will have to create at least one site. The new-site command allows you to do that.
bench new-site site1.local
The get-app command gets remote frappe apps from a remote git repository and installs them. Example: erpnext
bench get-app erpnext https://github.com/frappe/erpnext
To install an app on your new site, use the bench
bench --site site1.local install-app erpnext
To start using the bench, use the
To login to Frappe / ERPNext, open your browser and go to
The default username is "Administrator" and password is what you set when you created the new site.
- This is an opinionated setup so it is best to setup on a blank server.
- Works on Ubuntu 16.04, CentOS 7+, Debian 8+
- You may have to install Python 2.7 (eg on Ubuntu 16.04+) by running
apt-get install python-minimal
- You may also have to install build-essential and python-setuptools by running
apt-get install build-essential python-setuptools
- This script will install the pre-requisites, install bench and setup an ERPNext site
- Passwords for Frappe Administrator and MariaDB (root) will be asked
- MariaDB (root) password may be
passwordon a fresh server
- You can then login as Administrator with the Administrator password
- If you find any problems, post them on the forum: https://discuss.erpnext.com
Open your Terminal and enter:
1. Download the install script
2. Run the install script
If you are on a fresh server and logged in as root, use --user flag to create a user and install using that user
python install.py --develop --user frappe
For developer setup:
sudo python install.py --develop
sudo python install.py --production
What will this script do?
- Install all the pre-requisites
- Install the command line
- Create a new bench (a folder that will contain your entire frappe/erpnext setup)
- Create a new ERPNext site on the bench
How do I start ERPNext
- For development: Go to your bench folder (
frappe-benchby default) and start the bench with
- For production: Your process will be setup and managed by
supervisor. Setup Production
Docker Install - For Developers (beta)
- For developer setup, you can also use the official Frappé Docker.
- The app, mariadb and redis run on individual containers
- This setup supports multi-tenancy and exposes the frappe-bench volume as a external storage.
- For more details, read the instructions on the Frappé Docker README
For bench help, you can type
To manually update the bench, run
bench update to update all the apps, run
patches, build JS and CSS files and restart supervisor (if configured to).
You can also run the parts of the bench selectively.
bench update --pull will only pull changes in the apps
bench update --patch will only run database migrations in the apps
bench update --build will only build JS and CSS files for the bench
bench update --bench will only update the bench utility (this project)
bench update --requirements will only update dependencies (python packages) for the apps installed
- Configuring HTTPS
- Using Let's Encrypt to setup HTTPS
- Diagnosing the Scheduler
- Change Hostname
- Manual Setup
- Setup Production
- Setup Multitenancy
- Stopping Production