Skip to content
Xieyt edited this page Apr 26, 2024 · 7 revisions

fm create

Create a new bench.

Usage:

$ fm create [OPTIONS] BENCHNAME

Arguments:

  • BENCHNAME: Name of the bench [required]

Options:

  • -a, --apps TEXT: FrappeVerse apps to install. App should be specified in format : or .
  • --environment, --env [prod|dev]: Select bench environment type. [default: FMBenchEnvType.dev]
  • --developer-mode [enable|disable]: Toggle frappe developer mode. [default: EnableDisableOptionsEnum.disable]
  • --frappe-branch TEXT: Specify the branch name for frappe app [default: version-15]
  • --template / --no-template: Create template bench. [default: no-template]
  • --admin-pass TEXT: Default Password for the standard 'Administrator' User. This will be used as the password for the Administrator User for all new bench. [default: admin]
  • --ssl [letsencrypt|disable]: Enable https [default: SUPPORTED_SSL_TYPES.none]
  • --help: Show this message and exit.

Notes

  • In a prod environment, frappe developer-mode and Admin Tools are disabled by default.
  • In a dev environment, frappe developer-mode and Admin Tools are enabled by default.
  • When the -apps flag is utilized without specifying a <branch>, the behavior is as follows:
    • If the specified app is prebaked, the prebaked version will be utilized.
    • If the specified app is not prebaked, the default branch from the repository will be used.
  • Frappeverse apps are prebaked in the Frappe Docker images includes:
    • frappe : version-15
    • erpnext : version-15
    • hrms : version-15

Examples:

create example.localhost bench with only frappe, version -> version-15

fm create example

create example.localhost bench with only frappe, version -> develop

fm create example --frappe-branch develop

create example.localhost bench with frappe, erpnext and hrms, version -> version-15

fm create example --apps erpnext --apps hrms

create example.localhost bench with frappe, erpnext and hrms, version -> version-15

fm create example --apps erpnext:version-15 --apps hrms:version-15

create example.com bench with frappe, erpnext and hrms, version -> version-15, env -> prod and ssl -> letsencrypt

fm create example --apps erpnext --apps hrms --env prod --ssl letsencrypt
Clone this wiki locally