Publish a hub using commandline or API

Hi, I am using NEXT. Is there any way to publish a hub from a commandline or using some API call? waiting to hear from you