Export Fixtures for doctype

in hooks.py

fixtures = [
    {"dt": "DocType", "filters": [
        [
            "name", "in", [
                "Doctype1Name",
                "Doctype2Name"
            ]
        ]
    ]},
    {"dt": "Custom Field", "filters": [
        [
            "name", "in", [
                "CustomFieldName"
            ]
        ]
    ]}
]

then run command
bench export-fixtures

9 Likes