Add IOS capability programmatically

my project is integrated with a push notification plugin, for ios project, every time when I build it, I need to activate push notification Capability under Targets->Capabilities in XCode. Is there some method by which I can achieve this programmatically? config.xml? or node.js hook?