Connecting to Hazelcast Cloud with Hazelcast CLC

To use the Hazelcast CLC with Hazelcast Cloud, you can download a preconfigured client. You don’t need to do any configuration.

The configuration file in a sample client provides the Hazelcast CLC with with the correct connection credentials.

Before you Begin

You need the following:

  • Hazelcast CLC

  • A Cloud cluster

You can find all connection credentials, such as the cluster name and discovery token, in the Cloud console. For details, see Connecting to Cloud Clusters.

Connecting to Clusters

Make sure that your cluster is running before you start.

  1. Sign in to Cloud and select your cluster.

  2. From the cluster dashboard, click CLI to open the Quick Connection Guide for the Hazelcast CLC client.

  3. Run the clc config import command in step 2. This command updates the cluster configuration on your local machine.

  4. Run the clc -c pr-<CLUSTER_ID> command in step 3 to connect to your cluster using the Hazelcast CLC.

    CLC will start in the interactive mode, and you should see a CLC prompt.

The Hazelcast CLC connects to the cluster on demand, that is when you issue a command that requires the connection, such as running a SQL query.