How to enable/disable Adobe host port in terminal?
Not by commands/ scripting, but to solve the issue:

Open the file /etc/hosts by pasting it in "Go to Folder" in Finder. Edit out anything related to Adobe. This would stop redirecting those urls to 127.0.0.1 which is localhost. Thus allowing connections to actual IP. In my file,  localhost, broadcasthost are there only. 

Also, for unknown errors/causes, https://helpx.adobe.com/creative-cloud/kb/cc-cleaner-tool-installation-problems.html is helpful.