Import Doctype metadata through Data Import Tool


Is there anyway to Import DocType metadata through Data Import Tool ?
For example, all the settings for the metadata of multiple Doctypes (20 tables) is inputed into excel and upload the excel via the Data Import Tool.

Does anyone know how this can be achieved?

Thank You

in browser console run code below to set DocType as reference_doctype, then you can do the import as normal.

the 2nd tricky thing is even if custom field is not ticked, the skeleton files not generated, you need to open the newly imported doctype, change something then save to trigger generating of the skeleton files. or you can invoke the in bench console.

good luck.