@command(port=int)
    def do_run(self, port=9090):
        reactor.listenTCP(port, self.get_server(), interface='127.0.0.1')
        if self.manhole is True:
            from twisted.manhole.telnet import ShellFactory
            f = ShellFactory()
            f.username = f.password = 'admin'
            reactor.listenTCP(port+1, f)
        msg('Running reactor')
        self.batch = True
        if self.prefs['gui']['rememberme'] is True:
            self.logincmd.username = self.prefs['gui']['username']
            self.logincmd.password = self.prefs['gui']['password']
            self.logincmd.email = self.prefs['gui']['email']
        ua = os.getenv("LA_API_AGENT_INFO")
        if ua is not None:
            self.registry.session.prefs['user_agent'] += " (" + ua + ")"
        reactor.run()
        self.batch = False
Usage: run [<port>]
dataset/ETHPy150Open longaccess/longaccess-client/lacli/server/__init__.py/LaServerCommand.do_run