Create Page structure from code

In other words, i want to manually create all the pages, navigation and content from the source code. Any doc or example? I know that demo home page is being created from Orchard.Commands module but i have not found documentation about this..