Launching custom DocTypes with my custom app installation

Hello world,
How could I create/launch custom doctypes on my custom app installation, just like erpnext installation that adds new doctypes?

I’ve figured it out.
I’ve enabled the developer mode on my site

bench --site <mysite> set-config developer_mode 1

Then I opened up my frappe website and just added the DocTypes I need under my custom app as the module and make sure to uncheck the custom checkbox to save the DocType files.
The saved DocType would be under

apps/yourapp/yourapp/yourapp/doctype

Now you can push the changes to your repo and your DocType is now contained in your custom app.

On installing your custom app to a site, you would find a progress bar for updating the DocTypes

Updating DocTypes for <yourapp> [=====================]
2 Likes