Andrew Connell walks through the Office 365 Patterns & Practices Scenario provisioning OneDrive for Business with a console app. This code can be found on GitHub here https://github.com/OfficeDev/PnP/tree/master/Scenarios/Core.XMLBasedFieldsAndContentTypes
This sample demonstrates how to use feature framework element xml files defining fields and content types to provision remotely structures to the host web. This is typical process when we provision site collections remotely using CSOM.
All implementation is based on the code located in the Office AMS core component, which encapsulates the processing completely. Developer will just need to provide the element xml file and call the right method.