Installation
This page explains how to install the Phylax Credible Layer (PCL) CLI
The pcl
(Phylax Credible Layer) CLI is a command-line tool for interacting with the Phylax Credible Layer.
Prerequisites
Before installing PCL, ensure you have the following installed:
- Rust Nightly (version 1.80 or later)
- Git
Installation
Option 1: Install with Cargo (Recommended)
The fastest and easiest way to install pcl
is using Cargo:
This will install the pcl
binary in your Cargo installation directory (typically ~/.cargo/bin
on Unix-like systems). Make sure this directory is in your PATH.
Option 2: Build from Source
This option is recommended if you want more control over the build process or prefer to build from source.
-
Clone the repository:
-
Build the CLI:
-
The compiled binary will be available in the
target/release
directory. -
(Optional) Add the binary to your PATH for easier access:
You can place the binary in any directory that’s in your PATH. Choose a location that works best for your system configuration.
Alternatively, you can create an alias in your shell configuration file (like
.bashrc
,.zshrc
, etc.) that points to the absolute path of the binary:
Option 3: Download Pre-built Binary
Pre-built binaries are available for download from the GitHub releases page.
-
Download the appropriate binary for your platform.
-
Make the binary executable:
Note: The binary might have a slightly different name depending on the platform.
For example, on Mac, it might be named pcl-aarch64-apple
.
- Move the binary to a location in your PATH:
Verifying Installation
To verify that pcl
is installed correctly, run:
You should see the version number of the installed pcl
CLI.
Next Steps
Now that you have pcl
installed, you can learn how to get started with the Credible Layer.