To use the Hazelcast CLC with Hazelcast Viridian 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.
You need the following:
A Viridian Cloud cluster
|You can find all connection credentials, such as the cluster name and discovery token, in the Viridian Cloud console. For details, see Connecting to Viridian Cloud Clusters.|
Make sure that your cluster is running before you start.
Sign in to Viridian Cloud and select your cluster.
From the cluster dashboard, click CLI to open the Quick Connection Guide for the Hazelcast CLC client.
clc config importcommand in step 2. This command updates the cluster configuration on your local machine.
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.|