Bench Commands Cheatsheet
Bench Commands Cheatsheet
bench init [bench-name] - Create a new bench Run from home dir)
bench update - Pulls changes for bench-repo and all apps, applies patches, builds JS and CSS, and then migrates.
https://frappeframework.com/docs/user/en/bench/resources/bench-commands-cheatsheet 1/4
11/26/2020 Bench Commands Cheatsheet
bench migrate-env [python-version] Will migrate the virtual environment to the desired python version
bench --site [sitename] set-admin-password [password] Will reset the administrator password
Config
bench config - Change bench configuration
auto_update [on/off] Enable/Disable auto update for bench
dns_multitenant [on/off] Enable/Disable DNS Multitenancy
http_timeout Set http timeout
restart_supervisor_on_update Enable/Disable auto restart of supervisor
serve_default_site Configure nginx to serve the default site on
update_bench_on_update Enable/Disable bench updates on running bench...
Development
bench new-app [app-name] Creates a new app
bench get-app [repo-link] - Downloads an app from a git repository and installs it
bench uninstall-app [app-name] Delete app and everything linked to the app Bench needs to be running)
bench --site [sitename] --force reinstall Reinstall with fresh database Caution: Will wipe out old database)
https://frappeframework.com/docs/user/en/bench/resources/bench-commands-cheatsheet 2/4
11/26/2020 Bench Commands Cheatsheet
--root-login
--root-password
bench set-config [key] [value] Adds a key-value pair to site's config file
bench console Opens a IPython console in the bench venv
Scheduler
bench enable-scheduler - Enables Scheduler that will run scheduled tasks
bench doctor - Get diagnostic info about background workers
https://frappeframework.com/docs/user/en/bench/resources/bench-commands-cheatsheet 4/4