-
Notifications
You must be signed in to change notification settings - Fork 55
Home
xieyt edited this page Aug 22, 2025
·
30 revisions
Frappe-Manager (frappe-manager
) is a tool designed to simplify the creation and management of development environments for Frappe-based applications.
- This tool is intended for use with a
non-root
user. - If you create a site named
example
, its URL will be http://example.localhost. - If you create a site named
example.com
but haven't set up a corresponding DNS entry, you will need to add a mapping to/etc/hosts
to access the site. - If you update non-editable packages in Frappe's Python environment, use the
bench restart
/fmx restart
infm shell <benchname>
command to restart the related container services, if not you may encounterModuleNotFoundError: No module named 'module_name'
error in logs. -
frappe-manager
overrides thebench restart
subcommand ofbench
, adding functionality to restart the bench development server within the bench environment.
frappe-manager
package provides the following commands as the main interface for interacting with your development environments.
Frappe-Manager for creating frappe development environments.
$ fm [OPTIONS] COMMAND [ARGS]...
-
-v, --verbose
: Enable verbose output. -
-V, --version
: Show Version. -
--install-completion
: Install completion for the current shell. -
--show-completion
: Show completion for the current shell, to copy it or customize the installation. -
--help
: Show this message and exit.
-
create
: Create a new bench. -
delete
: Delete a bench. -
code
: Open bench in vscode. -
list
: Lists all of the available benches. -
info
: Shows information about given bench. -
logs
: Show frappe server logs or container logs for a given bench. -
self
: Perform operations related to the fm itself. -
services
: Handle global services. -
shell
: Spawn shell for the give bench. -
ssl
: Perform operations related to ssl. -
start
: Start a bench. -
stop
: Stop a bench. -
update
: Update bench.
Interact with supervisord instances managed by Frappe Manager.
Provides commands to stop, start, restart, and check the status of background services (like Frappe, Workers, Scheduler) running within the Frappe Manager Docker environment.
To access it, use:
fm shell <benchname>
fmx --help (inside container)
$ fmx [OPTIONS] COMMAND [ARGS]...
-
restart
: Restart Frappe services safely (with options for worker coordination and migrations) -
start
: Start services or specific processes. -
status
: Check the status of services. -
stop
: Stop services or specific processes.
Note:
- Once inside the container shell, you can use
fmx
to manage internal frappe services - The
fmx
CLI is only available only inside the container, basically after usingfm shell <benchname>
.
For more details on safe restarts and migrations, see Workers.md.