Loading...
Loading...
Use Frappe Manager (FM) for Docker-based development and testing environments. Use when setting up local dev, running isolated tests, or managing agent-driven Frappe development workflows.
npx skill4agent add lubusin/agent-skills frappe-manager# Install via pipx
pipx install frappe-manager
# Enable shell completion
fm --install-completion# Basic site (frappe only)
fm create mysite
# Site with ERPNext
fm create mysite --apps erpnext:version-15
# Site with multiple apps
fm create mysite --apps erpnext --apps hrms --environment dev
# Production site with SSL
fm create example.com --apps erpnext --env prod --ssl letsencrypt# List all sites
fm list
# Start/stop site
fm start mysite
fm stop mysite
# View site info
fm info mysite
# View logs (follow)
fm logs mysite -f
# Delete site
fm delete mysite# Access shell inside container
fm shell mysite
# Inside container - common commands:
bench new-app my_custom_app
bench --site mysite install-app my_custom_app
bench --site mysite migrate
bench build --app my_custom_app
bench --site mysite run-tests --app my_custom_app
# Exit shell
exit
# Open in VSCode
fm code mysite
# Open with debugger
fm code mysite --debugger# 1. Setup: Create fresh environment
fm create testsite --apps erpnext:version-15 --environment dev
fm start testsite
# 2. Develop: Enter shell, create app
fm shell testsite
bench new-app my_app
bench --site testsite install-app my_app
# ... make code changes ...
exit
# 3. Test: Run tests
fm shell testsite
bench --site testsite run-tests --app my_app
exit
# 4. Verify: Check logs
fm logs testsite -f
# 5. Reset if needed: Start fresh
fm stop testsite
fm delete testsite
fm create testsite --apps erpnext:version-15 --environment devfmxfm shell mysite
fmx status # Check service status
fmx restart # Restart Frappe services
fmx start # Start services
fmx stop # Stop servicesfm listfm startfm logsfm backup <site>fm doctorfm shell| Mistake | Why It Fails | Fix |
|---|---|---|
Running bench commands outside | "Command not found" or wrong site | Always |
| Wrong site context | Operations affect wrong site | Check prompt shows correct site; use |
| Missing volumes on recreate | Data loss | Use |
Not checking | Silent configuration issues | Run |
Using | DNS resolution issues | Use |
Forgetting to | Site not accessible | Run |