Added generic resource controller to cli