Bench Commands Cheatsheet: General Usage
Bench Commands Cheatsheet: General Usage
General Usage
bench init [bench-name] - Create a new bench (Run from home dir)
--apps_path TEXT path to json files with apps to install after init
--skip-redis-config-generation Skip redis config generation if already specifying the common-site-config file
bench update - Pulls changes for bench-repo and all apps, applies patches, builds JS and CSS, and then migrates.
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
firewall setup firewall and block all ports except 22, 80 and 443
Development
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 remove-app [app-name] Remove app from the bench entirely
bench --site [sitename] --force reinstall Reinstall with fresh database (Caution: Will wipe out old database)
--db-port Custom database listening port (eg. port other than the default 3306)
--verbose Verbose
--root-login
--root-password
bench set-config [key] [value] Adds a key-value pair to site's config file
bench --site [sitename] export-fixtures [--app TEXT] Export the records defined in the app's hooks as JSON files.
Scheduler
Data Import
--type Insert/Update
Forum
Frappe
Docs
GitHub
Telegram