add command line interface

add command line interface by thor