-
Notifications
You must be signed in to change notification settings - Fork 29
create
Xieyt edited this page Apr 26, 2024
·
7 revisions
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
- When
environment
isprod
thendeveloper-mode
is disabled by default and admintools are disabled by default. - When
environment
isdev
thendeveloper-mode
is enabled by default and admin tools are enabled by default. - Some of the frappeverse apps are prebaked in the frappe docker images:
-
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