Subscribing to feed via command line


Is there a best way to subscribe to a feed via the command line? And also being able to set the feed’s category and authentication?


for example write a CLI api client

e: also it’s possible for system plugins to add commands to update.php


Okay, also wondering if someone in the community has solved this problem before I think about working on it.