cli script uses new ports.register api

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