How to programatically setup views for content types?

Thanks for your feedback, I’ll look into the database and copy the settings between environments