Update cli to use promise

Was using onReady callback instead uses waitingForReady promise.