First version of CLI api