Fix Avoid the socket transport for the CLI script