How to Export Custom created solution to import on another system

Hi Guys,

I want to create one client project remotely, however I want to create custom doctype, workflows and assignment rules for project and need to export all these works from my system to import on client system full workable.

What are approch should i follow and what is right steps to go with that?

Thank You for help.

Hi @Gaurav1,

I think, you should create a custom app and add a hook.py

fixtures = [{
        "doctype": "Custom Field",
    },
    {
        "doctype": "Property Setter",
    },
    {
        "doctype": "Server Script",
    },
    {
        "doctype": "Client Script",
    },
    {
        "doctype": "Workflow Action Master",
    },
    {
        "doctype": "Workflow State",
    },
    {
        "doctype": "Workflow",
    },
    {
        "doctype": "Assignment Rule",
    },
    
]

Then apply the command:
Then all customization is exported in the custom app which you added in fixtures.

bench --site [sitename] export-fixtures

Reference: FIXTURES AND CUSTOM FIELDS IN FRAPPE AND ERPNEXT

Reference: CREATING A CUSTOM APP IN FRAPPE/ERPNEXT AND INSTALLING IT ON YOUR INSTANCE

Thank You!

2 Likes

fixtures = [{
“doctype”: “Custom Field”,
},
{
“doctype”: “Property Setter”,
},
]

code can simplify into when not using filters :
fixtures = ["Custom Field", "Property Setter"]

Always specify the app name exporting fixture
eg:

bench export-fixtures --app appname
1 Like