blob: 393f149b6858430f2f28c544325be71d8c3d86ee [file] [log] [blame] [view]
---
id: client-libraries-cpp-initialize
title: Initialize a C++ client object
sidebar_label: "Initialize"
description: Learn how to Initialize C++ client in Pulsar.
---
You can instantiate a Client object using just a URL for the target Pulsar [cluster](reference-terminology.md#cluster) like this:
```cpp
Client client("pulsar://localhost:6650");
```
:::note
If you run a cluster in [standalone mode](getting-started-standalone.md), the broker is available at the `pulsar://localhost:6650` URL by default.
:::