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

Thanks for the answer. I’d like some content types to be created automatically by the plugin and not through the CLI. Trying to figure it out through the docs…

Do you how to create content-types through a custom plugin?