api doc for cli

@rclark @jalisdairi