api doc for cli