@repl_command<EOL><INDENT>def do_local(self, host="<STR_LIT:localhost>", port=<NUM_LIT>):<DEDENT>
port = int(port)<EOL>if host == "<STR_LIT>":<EOL><INDENT>self._local_endpoint = None<EOL><DEDENT>else:<EOL><INDENT>self._local_endpoint = (host, port)<EOL><DEDENT>self.onecmd("<STR_LIT>" % self.engine.region)<EOL>
Connect to a local DynamoDB instance. Use 'local off' to disable.

> local
> local host=localhost port=8001
> local off