commands api usage