Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CLUSTER_ID to CLUSTER_NAME #156

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/modules/ROOT/pages/get-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,16 @@ If installed, the installed version of the Hazelcast CLC client displays.

. In the *Quick Connection Guide*, go to step 2 and run the `clc config import` command to import the configuration of your {hazelcast-cloud} cluster.

. Now execute the following command to connect the Hazelcast CLC to your cluster. Replace the placeholder `$CLUSTER_ID`. You can find the cluster ID on the dashboard of your cluster under *Cluster Details*.
. Now execute the following command to connect the Hazelcast CLC to your cluster. Replace the placeholder `$CLUSTER_NAME`. You can find the cluster ID on the dashboard of your cluster under *Cluster Details*.
+
```bash
clc -c pr-$CLUSTER_ID
clc -c pr-$CLUSTER_NAME
```
+
A CLC prompt is displayed:
+
```
pr-$CLUSTER_ID>
pr-$CLUSTER_NAME>
```
+
The Hazelcast CLC client is successfully connected to your cluster.
Expand All @@ -180,7 +180,7 @@ The Hazelcast CLC client is successfully connected to your cluster.
+
[source,bash]
----
clc sql -c pr-$CLUSTER_ID "CREATE OR REPLACE MAPPING cities (
clc sql -c pr-$CLUSTER_NAME "CREATE OR REPLACE MAPPING cities (
__key INT,
country VARCHAR,
city VARCHAR,
Expand All @@ -192,7 +192,7 @@ type IMap OPTIONS('keyFormat'='int', 'valueFormat'='json-flat');"
+
[source,bash]
----
clc sql -c pr-$CLUSTER_ID "INSERT INTO cities VALUES
clc sql -c pr-$CLUSTER_NAME "INSERT INTO cities VALUES
(1, 'United Kingdom','London', 9540576),
(2, 'United Kingdom','Manchester', 2770434),
(3, 'United States', 'New York', 19223191),
Expand All @@ -213,16 +213,16 @@ Now that you have some data in your cluster, you can query it using CLC. In the

NOTE: Ensure that there is a semi-colon (;) at the end of each SQL query. If this is omitted, CLC assumes that you are entering a multi-line query.

If CLC is not connected, enter the following command replacing the `$CLUSTER_ID` placeholder with your cluster ID:
If CLC is not connected, enter the following command replacing the `$CLUSTER_NAME` placeholder with your cluster ID:

```bash
clc -c pr-$CLUSTER_ID
clc -c pr-$CLUSTER_NAME
```

A CLC prompt is displayed:

```
pr-$CLUSTER_ID>
pr-$CLUSTER_NAME>
```

NOTE: You can find the cluster ID on the dashboard of your cluster under *Cluster Details*.
Expand Down
Loading