I found some sample code elsewhere, and -- unless I'm missing something, which is quite likely -- it will not work with a CLI tool, because it needs to know the bundle name.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: