Self
fm self¶
Self commands.
Usage:
Options:
--help: Show this message and exit.
Commands:
update: Check for and install frappe-manager updates.update-images: Pull latest FM stack docker images.compose: Run docker compose commands with auto-detected compose files.stop: Stop everything managed by FM.
fm self update¶
Check for and install frappe-manager updates.
Updates the installed fm package using the package installer. Use --yes to skip prompts.
Usage:
Options:
-y, --yes: Skip confirmation prompt and proceed with update
Examples¶
Update fm to the latest version available on pypi¶
Checks PyPI for the latest frappe-manager release and installs it if available.
Update without confirmation prompt¶
Skips the interactive confirmation and updates immediately if a new version is found.
fm self update-images¶
Pull latest FM stack docker images.
Usage:
Examples¶
Update all Frappe docker images to latest versions¶
Pulls the latest Docker images used by FM to keep runtime images up to date.
Update images in verbose mode¶
Shows detailed pull progress for each Docker image layer.
fm self compose¶
Run docker compose commands with auto-detected compose files.
Automatically finds and includes all docker-compose*.yml files in the bench directory.
Usage:
Examples¶
Show running containers for a bench¶
Runs 'docker compose ps' for the bench using all discovered compose files.
Start containers in detached mode¶
Starts containers in detached mode using the bench's compose files.
Follow logs for frappe service¶
Runs 'docker compose logs -f frappe' to stream logs for the frappe service.
Execute bash in frappe container¶
Executes an interactive bash shell in the frappe container.
Restart specific service¶
Restarts a single service using docker compose for targeted debugging.
View container resource usage¶
Runs 'docker compose stats' to view resource usage for bench containers.
fm self stop¶
Stop everything managed by FM.
Stops all running benches and global services (global-db, global-nginx-proxy). Use --global-only or --benches-only to stop only a subset.
Usage:
Examples¶
Stop everything (all benches + global services)¶
Stops all running benches and all global services (global-db, global-nginx-proxy).
Stop only global services¶
Stops only global services, leaves benches running.
Stop only benches¶
Stops only benches, leaves global services running.