Added first draft of CLI api