How can I create content-types on init of a custom plugin?

I suggest you use the strapi cli for all of your needs to create content-types/plugins/routes etc…

Simply run:

npm run strapi generate

//or

yarn strapi generate

All the best! :grinning:

1 Like