CLI interface

Closes #2