Command-line example for OS-X?

I’m trying write a simple Swift command-line example that demonstrates the use of CBL or the CB Server. I’ve looked at the Swift Grocery-Sync example, and can get part of the way by extracting code from there, but I’m stumbling. (For example, having added the two OS-X CBL libraries to my Xcode project, what header do I import?)

I realize CBL is designed for mobile applications, but is it nonsensical to try to experiment with command-line programs to put aside interface building and maintaining?

Does anyone know of a command-line example for either CBL or CB? I searched quite a bit but didn’t come up with anything.

The LiteServ tool is an example, although the code’s not the cleanest.

having added the two OS-X CBL libraries to my Xcode project, what header do I import?)

The ‘umbrella’ header(s), just like any other framework:

#import <CouchbaseLite/CouchbaseLite.h>
#import <CouchbaseLiteListener/CouchbaseLiteListener.h>

If you’re coding in Swift, those go into your “bridging header”.

Thanks… I was hoping for a Swift example, but it’s always good to have more examples to look at.