commands api