I am wondering how one creates a collection and adds a document to that collection in a fresh zorba install using the commandline interface http://www.zorba-xquery.com/html/documentation/2.7.0/zorba/commandline
If it cannot be done with the command line an example using the scripting api would be good.
This can be done using XQuery scripting. Consider the following XQuery module:
You can use it like this: