cli script uses new ports.register api

this broke my site :( need to write test for this
1.2.1