add command file and update the restApiController