# 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 %}
