> For the complete documentation index, see [llms.txt](https://docs.clique.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clique.tech/build-with-clique/clique-cli/installation.md).

# Installation

### Get Pre-built Executable from Cargo (Recommended)

If you have installed the Rust toolchain already, you can get our pre-built executable from cargo.

```bash
$ cargo install clique-cli
```

### Build from Source

You can also build the executable yourself with the following guidelines.

#### Pre-requisites

* [Rust-toolchain ](https://rust-lang.github.io/rustup/concepts/channels.html)

#### Step-by-step Guide

**Clone the Clique CLI from GitHub**&#x20;

```bash
$ git clone https://github.com/CliqueOfficial/clique-protocol-sdk.git
```

**Build the Binary with Cargo**

```bash
$ cd cli
$ cargo build --release --bin clique
```

**Install the Built Executable to System**

```bash
# Install the binary locally (recommended)
$ cp target/release/clique ~/.local/bin/
# Or if you want to install it globally
$ sudo cp target/release/clique /usr/bin/
```

{% hint style="info" %}
Make sure `~/.local/bin` is includes in `$PATH` environment variable.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.clique.tech/build-with-clique/clique-cli/installation.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.
