add api command

add api command which can create an api application