start updating cli to use new core api