add command api