# Chain

The Orakl Network state can hold information about deployments to multiple chains. The chain is a fundamental configuration which is used in all other Orakl Network settings.

The **Orakl Network CLI** provides commands to

* [List Chains](#list-chains)
* [Insert New Chain](#insert-new-chain)
* [Remove Chain Specified By `id`](#remove-chain-specified-by-id)

### List Chains

```sh
orakl-cli chain list
```

```json
[
  { "id": 1, "name": "localhost" },
  { "id": 2, "name": "baobab" },
  { "id": 3, "name": "cypress" }
]
```

### Insert New Chain

If there are not chains set, we can add a new chain using `chain insert` command of the **Orakl Network CLI**.

```sh
orakl-cli chain insert \
    --name ${chainName}
```

* example

```
orakl-cli chain insert --name ethereum
```

### Remove Chain Specified By `id`

Chains can be removed when there are no association to them yet.

```sh
orakl-cli chain remove \
    --id ${id}
```

* example

```sh
orakl-cli chain remove --id 10
```


---

# 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://docs.orakl.network/node-operators-guide/cli/chain.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.
