add api docs for command