# Connecting to a Cluster

**Connecting to a Cluster**

See Ethereal Clusters for general information about the available clusters.

**Configure the command-line tool**

You can check what cluster the Ethereal command-line tool (CLI) is currently targeting by running the following command:

Etherealconfig get

Use Etherealconfig set command to target a particular cluster. After setting a cluster target, any future subcommands will send/receive information from that cluster.

For example to target the Devnet cluster, run:

Ethereal config set --url <https://explorer.testnet.Ethereal.com/rpc>

**Ensure Versions Match**

Though not strictly necessary, the CLI will generally work best when its version matches the software version running on the cluster. To get the locally-installed CLI version, run:

Ethereal--version

To get the cluster version, run:

Ethereal cluster-version

Ensure the local CLI version is greater than or equal to the cluster version.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ethereals-blockchain.gitbook.io/ethereal-chain-documentation/command-line/connecting-to-a-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
