Has someone figured out Craft 3 content migrations?
This is a plugin I'm working on to do exactly what you are after. 

https://m.youtube.com/watch?v=n6ko2PKUqAo&amp;feature=youtu.be

The syntax to figure out how to create sections, elements etc is determined by reading through the craft service and model classes.