Clique Docs
  • What Is Clique
    • TEE Network
    • Compute Coordination Network
  • Build with Clique
    • Clique Application Structure
    • Clique CLI
      • Installation
      • Develop Task
      • Build Task
      • Test Task
      • Deploy Task
    • Clique Client SDK
    • Smart Contract SDK
      • Smart Contract Integration
      • Clique Official Tasks
  • References
    • Clique Manifest
    • Clique Query
    • Verification
  • Sample Task Tutorials
    • Data Attestation
    • Social Verification
      • Github
      • Twitter
    • Making Arbitrary TLS Calls (TLS Oracle)
    • Custom Executor
  • Toolchain
    • Clique Pipelines SDK
    • Clique Attestation SDK
      • Attestation Protocols
      • Reading Attestations On-chain
      • Reading Attestations Off-Chain
      • What are Attestors ?
        • Data Sources
    • Clique Browser Extension
  • FAQ
  • Glossaries
  • Socials
Powered by GitBook
On this page
  • Get Pre-built Executable from Cargo (Recommended)
  • Build from Source
  1. Build with Clique
  2. Clique CLI

Installation

PreviousClique CLINextDevelop Task

Last updated 8 months ago

Get Pre-built Executable from Cargo (Recommended)

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

$ cargo install clique-cli

Build from Source

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

Pre-requisites

Step-by-step Guide

Clone the Clique CLI from GitHub

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

Build the Binary with Cargo

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

Install the Built Executable to System

# 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/

Make sure ~/.local/bin is includes in $PATH environment variable.

Rust-toolchain