I am currently making a theme for drupal 8. I would like when someone installs my theme, to automatically install the content types and data that is required to run the theme properly. For example, my main slider relies on a certain content type and data to run. I need when my theme is installing to install those as well.
So mostly I need to know how to run drupal console commands upon theme installation so that I can import with configuration management.