I am looking for a way to transfer files from my Mac to the iPhone via USB, and it needs to be done either using the terminal or programmatically.
So far, I have seen some other questions on that topic on StackOverflow, and the most common reply was to use GUI-tools such as iExplorer. Unfortunately, I cannot use GUI-based tools.
One interesting answer was this one (https://stackoverflow.com/a/15795578/299711), which mentioned the MobileDevice library, but alas, it seems very poorly documented (rather, not documented at all, which is not surprising given the fact that it's a private API).
Another answer I found mentioned fruitstrap (https://stackoverflow.com/a/11061932/299711), however, a) I need to be able to copy files in both directions, and b) I need to copy files that are not contained within an application, but which can be located anywhere on the iOS device.
I would be willing to develop a command-line tool myself, if I were to find any documentation is to how to use the MobileDevice framework. But if there already is such a command-line tool which supports bidirectional file transfers, please point me to it. Also, I do not mind having to jailbreak the device if necessary. Thanks!